/* ── Auth Page — Two-panel split layout ── */
.auth-page {
    min-height: calc(100vh - 68px);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Left panel */
.auth-panel-left {
    background: linear-gradient(160deg, var(--wl-primary) 0%, #1a5c8a 60%, #0a2d4d 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 120px 52px;
}

.auth-panel-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12;
}

.auth-panel-left-inner { position: relative; z-index: 1; }

.auth-panel-left h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 14px;
    line-height: 1.25;
}

.auth-panel-left p {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    margin-bottom: 36px;
    line-height: 1.7;
}

.auth-benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.auth-benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wl-accent);
    font-size: 1rem;
}

.auth-benefit-text strong {
    display: block;
    color: #fff;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.auth-benefit-text span {
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    line-height: 1.5;
}

.auth-testimonial {
    margin-top: 44px;
    padding: 20px 22px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
}

.auth-testimonial p {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 12px;
}

.auth-testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--wl-accent), var(--wl-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.auth-testimonial-author span {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.auth-testimonial-author small {
    color: rgba(255,255,255,0.55);
    font-size: 0.75rem;
    display: block;
}

/* Right panel */
.auth-panel-right {
    background: var(--wl-bg);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 120px 40px;
    overflow-y: auto;
    max-height: 100vh;
}

.auth-form-wrap {
    width: 100%;
    max-width: 440px;
}

.auth-form-wrap h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.auth-form-wrap > p {
    color: var(--wl-text-muted);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

/* Tabs */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 26px;
    border-bottom: 2px solid var(--wl-border);
}

.auth-tab {
    padding: 10px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--wl-text-muted);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
    font-family: inherit;
    text-decoration: none;
    display: block;
}

.auth-tab:hover {
    color: var(--wl-primary);
    text-decoration: none;
}

.auth-tab.active {
    color: var(--wl-primary);
    border-bottom-color: var(--wl-primary);
}

/* Social buttons */
.auth-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1.5px solid var(--wl-border);
    border-radius: 10px;
    background: var(--wl-surface);
    color: var(--wl-text);
    font-size: 0.84rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.auth-social-btn:hover {
    border-color: var(--wl-primary);
    color: var(--wl-primary);
    text-decoration: none;
}

.auth-social-btn .fab { font-size: 1rem; }
.auth-social-btn .fa-google { color: #4285f4; }
.auth-social-btn .fa-facebook-f { color: #1877f2; }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: var(--wl-text-muted);
    font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--wl-border);
}

/* Form fields */
.auth-field { margin-bottom: 16px; }

.auth-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--wl-text);
    margin-bottom: 6px;
}

.auth-label i {
    color: var(--wl-accent);
    font-size: 0.82rem;
    width: 14px;
    text-align: center;
}

.auth-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--wl-border);
    border-radius: 10px;
    background: var(--wl-surface);
    color: var(--wl-text);
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.auth-input:focus { border-color: var(--wl-accent); }
.auth-input::placeholder { color: var(--wl-text-muted); }
.auth-input.error { border-color: #ef4444; }

/* Password with eye toggle */
.auth-input-wrap { position: relative; }
.auth-input-wrap .auth-input { padding-right: 44px; }

.auth-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--wl-text-muted);
    cursor: pointer;
    font-size: 0.88rem;
    padding: 0;
    transition: color 0.15s;
}

.auth-eye:hover { color: var(--wl-primary); }

/* Validation error */
.auth-error {
    font-size: 0.77rem;
    color: #ef4444;
    margin-top: 5px;
    display: none;
}

.auth-error.show { display: block; }

/* Remember me + Forgot password row */
.auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.auth-remember-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: var(--wl-text-muted);
    cursor: pointer;
}

.auth-remember-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--wl-accent);
    cursor: pointer;
}

.auth-forgot-link {
    font-size: 0.82rem;
    color: var(--wl-accent);
    text-decoration: none;
}

.auth-forgot-link:hover {
    color: var(--wl-accent-dark);
    text-decoration: underline;
}

/* Submit button */
.auth-submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--wl-primary), #1a5c8a);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-bottom: 16px;
}

.auth-submit:hover { opacity: 0.9; }

/* Bottom switch link */
.auth-signin-link {
    text-align: center;
    font-size: 0.84rem;
    color: var(--wl-text-muted);
}

.auth-signin-link a {
    color: var(--wl-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-signin-link a:hover { color: var(--wl-accent); }

/* Alert messages */
.auth-alert {
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.82rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.auth-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* ── Register — role selector ── */
.auth-role-section { margin-bottom: 20px; }

.auth-role-section > .auth-label { margin-bottom: 10px; }

.auth-role-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-role-card { position: relative; }

.auth-role-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.auth-role-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    border: 1.5px solid var(--wl-border);
    border-radius: 12px;
    background: var(--wl-surface);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    position: relative;
}

.auth-role-label:hover {
    border-color: var(--wl-primary);
    background: var(--wl-bg-subtle);
}

.auth-role-card input[type="radio"]:checked + .auth-role-label {
    border-color: var(--wl-primary);
    background: rgba(13, 59, 102, 0.05);
    box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.08);
}

.auth-role-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--wl-border);
    background: var(--wl-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.6rem;
    color: transparent;
}

.auth-role-card input[type="radio"]:checked + .auth-role-label .auth-role-check {
    border-color: var(--wl-primary);
    background: var(--wl-primary);
    color: #fff;
}

.auth-role-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--wl-bg-subtle);
    border: 1.5px solid var(--wl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wl-text-muted);
    font-size: 1.05rem;
    transition: all 0.2s;
}

.auth-role-card input[type="radio"]:checked + .auth-role-label .auth-role-icon {
    background: var(--wl-primary);
    border-color: var(--wl-primary);
    color: #fff;
}

.auth-role-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--wl-text);
    margin-bottom: 1px;
}

.auth-role-desc {
    font-size: 0.71rem;
    color: var(--wl-text-muted);
    line-height: 1.35;
}

/* ── Social role modal ── */
.auth-social-modal-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
}

.auth-social-modal-icon.google { background: #4285f4; }
.auth-social-modal-icon.facebook { background: #1877f2; }

.auth-social-modal-btn {
    padding: 11px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--wl-primary), #1a5c8a);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-social-modal-btn:hover { opacity: 0.9; }

/* ── Register — select ── */
.auth-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* ── Register — optional label suffix ── */
.auth-label-optional {
    font-weight: 400;
    color: var(--wl-text-muted);
    font-size: 0.75rem;
    margin-left: 2px;
}

/* ── Register — password strength ── */
.auth-strength { margin-top: 8px; }

.auth-strength-bar {
    height: 3px;
    border-radius: 2px;
    background: var(--wl-border);
    overflow: hidden;
    margin-bottom: 4px;
}

.auth-strength-fill {
    height: 100%;
    border-radius: 2px;
    width: 0;
    transition: width 0.3s, background 0.3s;
}

.auth-strength-label {
    font-size: 0.72rem;
    color: var(--wl-text-muted);
}

/* ── Register — terms agreement ── */
.auth-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-agree input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    accent-color: var(--wl-accent);
    cursor: pointer;
}

.auth-agree label {
    font-size: 0.81rem;
    color: var(--wl-text-muted);
    line-height: 1.55;
    cursor: pointer;
}

.auth-agree a {
    color: var(--wl-accent);
    text-decoration: none;
}

.auth-agree a:hover { text-decoration: underline; }

@media (max-width: 991px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-panel-left { display: none; }
    .auth-panel-right { padding: 40px 24px; }
}

/* ── Demo credentials ── */
.demo-credentials { margin-top: 20px; }

.demo-credentials-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--wl-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.demo-credentials-divider::before,
.demo-credentials-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--wl-border);
}

.demo-cred-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: 1.5px solid var(--wl-border);
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: border-color .15s, background .15s;
    text-align: left;
}

.demo-cred-row:last-child { margin-bottom: 0; }

.demo-cred-row:hover {
    border-color: var(--wl-primary);
    background: rgba(var(--wl-primary-rgb, 14, 90, 140), .05);
}

.demo-role-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    padding: 2px 7px;
    border-radius: 5px;
    flex-shrink: 0;
}

.demo-role-admin   { background: #dbeafe; color: #1d4ed8; }
.demo-role-tourist { background: #dcfce7; color: #15803d; }
.demo-role-guide   { background: #fef9c3; color: #92400e; }

.demo-cred-email { flex: 1; font-size: 13px; font-weight: 500; color: var(--wl-text); }
.demo-cred-pass  { font-size: 13px; color: var(--wl-text-muted); flex-shrink: 0; }
.demo-copy-icon  { font-size: 14px; color: var(--wl-text-muted); flex-shrink: 0; transition: color .15s; }
.demo-cred-row:hover .demo-copy-icon { color: var(--wl-primary); }
