/* Customer auth: login, register, forgot password — shared layout & polish */
.auth-section {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 3rem) 1rem;
    background: linear-gradient(165deg, #ecfdf5 0%, #f0fdf4 32%, #f8fafc 100%);
}

.auth-card {
    max-width: 420px;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 20px 50px -12px rgba(46, 125, 50, 0.14);
    border: 1px solid rgba(207, 232, 208, 0.85);
    overflow: hidden;
}

.auth-card--wide {
    max-width: 460px;
}

.auth-card .card-header {
    background: #2e7d32;
    color: #fff;
    padding: 1.65rem 1.5rem 1.4rem;
    text-align: center;
    border-bottom: none;
}

/* Bootstrap .card-header can set cap text color; force white on title + icons */
.auth-card .card-header h1,
.auth-card .card-header .fas,
.auth-card .card-header .fa,
.auth-card .card-header i {
    color: #fff !important;
}

.auth-card .card-header h1 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-card .card-body {
    padding: 1.75rem 1.75rem 2rem;
}

.auth-card__lead {
    margin: -0.25rem 0 0;
    line-height: 1.5;
    text-align: center;
}

.auth-card .form-label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: #1e293b;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.auth-card .form-control {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    min-height: 48px;
    border: 1px solid #c8e6c9;
    background: #fafcfa;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-card textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

.auth-card .form-control::placeholder {
    color: #94a3b8;
}

.auth-card .form-control:hover {
    border-color: #a5d6a7;
    background: #fff;
}

.auth-card .form-control:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
    background: #fff;
    outline: 0;
}

.auth-card .mb-3 {
    margin-bottom: 1.125rem !important;
}

.auth-card small.text-muted,
.auth-card .text-muted.small {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #64748b !important;
    line-height: 1.4;
}

.auth-card .forget-steps p.small,
.auth-card .auth-steps p.small {
    line-height: 1.45;
}

.step-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #1b5e20;
    background: rgba(46, 125, 50, 0.1);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.auth-card .btn-primary {
    background: #2e7d32;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    min-height: 50px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.auth-card .btn-primary:hover {
    transform: translateY(-1px);
    background: #1b5e20;
    box-shadow: 0 6px 18px rgba(27, 94, 32, 0.3);
    color: #fff;
}

/* Login submit row — full-width button */
.auth-form__submit {
    margin-top: 0.35rem;
}

.auth-form__submit .btn-primary {
    width: 100%;
    display: block;
}

/* Register / forgot-password — primary actions full width (same as login) */
.auth-form__actions {
    margin-top: 0.35rem;
}

.auth-form__actions .btn-primary {
    width: 100%;
    display: block;
}

.auth-card .btn-primary:active {
    transform: translateY(0);
}

.auth-links {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8f5e9;
    text-align: center;
    font-size: 0.875rem;
}

.auth-links a {
    color: #2e7d32;
    font-weight: 600;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
    color: #1b5e20;
}

.auth-card .alert {
    border-radius: 12px;
    border: none;
}

.auth-card .alert-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.auth-card .alert-info {
    background: #eff6ff;
    color: #1d4ed8;
}

@media (max-width: 575.98px) {
    .auth-card .card-body {
        padding: 1.35rem 1.25rem 1.65rem;
    }
}
