/* Auth pages (login & register) — aligned with the client-facing booking/home design */

.auth-section {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 64px);
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.10), transparent 28%),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.10), transparent 24%),
        #faf9f7;
    padding: 72px 24px 104px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
}

.auth-shell-wide {
    max-width: 680px;
}

/* ─── Heading ─── */

.auth-heading {
    text-align: center;
    margin-bottom: 28px;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 999px;
    color: #7c3aed;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.auth-title {
    color: #111827;
    font-size: clamp(1.7rem, 3.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 0.96rem;
    margin: 0;
}

/* ─── Card ─── */

.auth-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 24px 64px rgba(17, 24, 39, 0.10);
    backdrop-filter: blur(14px);
}

/* ─── Alerts ─── */

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.5;
}

.auth-alert i {
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.auth-alert-error ul {
    margin: 4px 0 0;
    padding: 0 0 0 1.1rem;
    font-size: 0.875rem;
}

.auth-alert-success {
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid rgba(16, 185, 129, 0.18);
    color: #047857;
}

.auth-alert-success a {
    color: #047857;
    font-weight: 600;
}

/* ─── Form layout ─── */

form.auth-form {
    display: grid;
    gap: 20px;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.auth-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ─── Labels ─── */

.auth-label {
    color: #111827;
    font-size: 0.92rem;
    font-weight: 700;
    display: block;
    margin: 0;
}

.auth-required {
    color: #dc2626;
    margin-left: 4px;
}

/* ─── Input wrap ─── */

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #7c3aed;
    font-size: 0.98rem;
    pointer-events: none;
    z-index: 1;
}

.auth-input-wrap input[type="text"],
.auth-input-wrap input[type="email"],
.auth-input-wrap input[type="password"],
.auth-input-wrap input[type="tel"] {
    width: 100%;
    border: 1px solid #ddd6fe;
    border-radius: 14px;
    padding: 13px 15px 13px 44px;
    background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
    color: #111827;
    font-size: 0.96rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.auth-input-wrap input::placeholder {
    color: #9ca3af;
}

.auth-input-wrap input:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
    background: #ffffff;
}

/* ─── Password toggle button ─── */

.auth-input-wrap-pw input[type="password"],
.auth-input-wrap-pw input[type="text"] {
    padding-right: 44px;
}

.auth-pw-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    line-height: 1;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
    z-index: 2;
}

.auth-pw-toggle:hover {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.08);
}

.auth-pw-toggle:focus-visible {
    outline: none;
    color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

/* ─── Password strength meter ─── */

.auth-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    min-height: 18px;
}

.auth-strength-bar {
    display: flex;
    gap: 5px;
    flex: 1;
}

.auth-strength-bar span {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: #e5e7eb;
    transition: background 0.25s ease;
}

.auth-strength-label {
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 48px;
    text-align: right;
    transition: color 0.25s ease;
}

/* Colour the filled segments per strength level */
.auth-strength[data-level="1"] .auth-strength-bar span:nth-child(1) { background: #ef4444; }
.auth-strength[data-level="2"] .auth-strength-bar span:nth-child(-n+2) { background: #f97316; }
.auth-strength[data-level="3"] .auth-strength-bar span:nth-child(-n+3) { background: #eab308; }
.auth-strength[data-level="4"] .auth-strength-bar span:nth-child(-n+4) { background: #22c55e; }

/* ─── Field errors ─── */

.auth-form-row ul,
.auth-form-row .form-error {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #dc2626;
    font-size: 0.85rem;
}

/* ─── Checkbox row (Remember me / Terms) ─── */

.auth-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

.auth-checkbox-row input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #7c3aed;
    cursor: pointer;
}

.auth-checkbox-row ul {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    color: #dc2626;
    font-size: 0.85rem;
}

/* ─── Submit button ─── */

.auth-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 26px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
    border: 0;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(124, 58, 237, 0.36);
    filter: saturate(1.05);
}

.auth-submit-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(124, 58, 237, 0.16),
        0 16px 34px rgba(124, 58, 237, 0.30);
}

/* ─── Footer links ─── */

.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    padding-top: 4px;
}

.auth-link {
    color: #374151;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #d1d5db;
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.auth-link:hover {
    color: #7c3aed;
    text-decoration-color: #a78bfa;
}

/* ─── Responsive ─── */

@media (max-width: 575px) {
    .auth-section {
        padding: 40px 16px 72px;
        align-items: flex-start;
    }

    .auth-card {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }
}
