/* 
 * Modern Auth Styles for Begin From Here
 * Targets: Login, Register, Password Reset pages
 * Overrides Ultimate Member default styles
 * Now optimized for 'page-auth-modern.php' split layout
 */

/* Form Container - Flat Style (No Card) */
.um-login,
.um-register,
.um-password,
.um-form,
.um-account {
    max-width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Page Background tweak handled by Template */


/* Page Background tweak (applied to body via specificity if possible, or assume white default) */
/* We don't want to break global body, but on these pages we might want a subtle bg */

/* Headers */
.um-header {
    border-bottom: none !important;
    margin-bottom: 30px !important;
    text-align: center;
    padding-bottom: 0 !important;
}

.um-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 10px !important;
    background: linear-gradient(135deg, #00E2C1 0%, #5B8FE5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.um-header .um-meta-text {
    color: #64748b !important;
    font-size: 15px !important;
}

/* Inputs */
.um-field-area {
    margin-bottom: 20px !important;
}

.um-form input[type=text],
.um-form input[type=password],
.um-form input[type=email],
.um-form input[type=tel],
.um-form input[type=number],
.um-field input.um-form-field {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    /* Thinner, softer border */
    border-radius: 12px !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    color: #334155 !important;
    transition: all 0.2s ease !important;
    height: auto !important;
    box-shadow: none !important;
}

.um-form input:focus {
    border-color: #5B8FE5 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(91, 143, 229, 0.1) !important;
    outline: none !important;
}

/* Labels */
.um-field-label {
    display: block !important;
    margin-bottom: 8px !important;
}

.um-field-label label {
    font-family: inherit !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #475569 !important;
}

/* Buttons */
.um-left,
.um-center,
.um-right {
    text-align: center !important;
}

input[type=submit].um-button,
input[type=submit].um-btn-auto {
    background: linear-gradient(135deg, #00E2C1 0%, #5B8FE5 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding: 16px 32px !important;
    text-transform: none !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(91, 143, 229, 0.2) !important;
}

input[type=submit].um-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(91, 143, 229, 0.35) !important;
    opacity: 1 !important;
}

/* Secondary Button (Register on Login?) */
.um-button.um-alt,
a.um-button.um-alt {
    background: #fff !important;
    color: #64748b !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: none !important;
}

.um-button.um-alt:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

/* Utility Links */
.um-col-alt {
    margin-top: 15px !important;
    text-align: center !important;
}

.um-col-alt a,
.um-misc-ul a {
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
}

.um-col-alt a:hover {
    color: #5B8FE5 !important;
    text-decoration: underline !important;
}

/* Icons within inputs (if any) */
.um-field-icon {
    display: none !important;
    /* Often looks dated, hide for cleaner look */
}

/* Errors */
.um-field-error {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-top: 8px !important;
    font-size: 13px !important;
    border: 1px solid #fecaca !important;
}

.um-field-arrow {
    display: none !important;
}

/* Responsive */
@media (max-width: 600px) {

    .um-login,
    .um-register,
    .um-password,
    .um-form {
        margin: 20px auto !important;
        padding: 24px !important;
        box-shadow: none !important;
        border: none !important;
    }
}