/* Auth Page - Background & Center */
.auth-page {
    background: var(--bg-app);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

/* The Auth Card */
.auth-card {
    max-width: 420px;
    width: 90%;
    padding: var(--spacing-xl);
    background: var(--bg-panel);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* Branding & Logo */
.auth-branding {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.auth-branding i {
    font-size: 3rem;
    color: var(--brand-primary);
    margin-bottom: var(--spacing-sm);
}

.auth-branding h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

/* Titles */
.auth-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

/* Form Layout */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
}

/* Input Fields with Icons */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    color: var(--text-tertiary);
    font-size: 18px;
}

.input-with-icon .input-field {
    padding-left: 40px;
    /* Make room for icon */
}

/* Reusable Alert Style */
.alert-error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Submit Button Override */
.btn-submit {
    width: 100%;
    height: 46px;
    margin-top: var(--spacing-md);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit i {
    transition: transform 0.2s ease;
}

.btn-submit:hover i {
    transform: translateX(4px);
}

/* Ensure the email is prominent but tucked under the title */
.auth-email {
    display: block;
    margin-top: -10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--brand-primary);
    font-size: 15px;
    text-align: center;
}

/* Generous spacing for the intro text to decouple it from the form */
.auth-subtitle.form-intro {
    margin-bottom: 40px; /* Increased distance to the first field */
    text-align: center;
    color: var(--text-muted);
}
/* Validation summary cleanup */
.auth-validation-container {
    margin-bottom: var(--spacing-md);
}



/* 1. Deep Input Fields */
.auth-card .input-field {
    border: 1px solid var(--border-color);
    background: #fbfcfd; /* Very subtle off-white */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .auth-card .input-field:focus {
        background: white;
        border-color: var(--brand-primary);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); /* Subtle "Breathable" Glow */
        transform: translateY(-1px); /* Micro-interaction */
    }
/* 2. Premium Button State */
.btn-submit {
    font-weight: 600;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #1d4ed8 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

    .btn-submit:hover {
        box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
        transform: translateY(-2px);
    }
/* 3. Icon styling inside inputs */
.input-with-icon i {
    z-index: 10;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-with-icon:focus-within i {
    color: var(--brand-primary);
}
