/* ============================================================
   CanGoShare — Auth Pages (Clean White Theme)
   ============================================================ */

.auth-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #FFF5F5 0%, #F8F9FA 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px;
    position: relative; overflow: hidden;
}

.auth-page::before {
    content: ''; position: absolute; top: -20%; right: -10%;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(227,6,19,0.05) 0%, transparent 70%);
    pointer-events: none;
}

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

.auth-logo {
    text-align: center; margin-bottom: 28px;
}
.auth-logo img {
    max-height: 75px; width: auto; object-fit: contain;
    transition: transform 0.25s ease;
}
.auth-logo img:hover { transform: scale(1.02); }

.auth-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.auth-title {
    font-size: 1.5rem; font-weight: 800; color: #111827; margin-bottom: 6px;
}
.auth-subtitle {
    font-size: 0.875rem; color: #4B5563; margin-bottom: 28px;
}

/* Role Selector */
.role-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px;
}
.role-tab {
    padding: 14px 16px; border-radius: 12px; cursor: pointer;
    border: 2px solid #E5E7EB; background: #F9FAFB;
    text-align: center; transition: all 0.25s; user-select: none;
}
.role-tab input { display: none; }
.role-tab .tab-icon { font-size: 1.8rem; margin-bottom: 6px; display: block; }
.role-tab .tab-label { font-size: 0.88rem; font-weight: 700; color: #111827; display: block; }
.role-tab .tab-desc  { font-size: 0.72rem; color: #6B7280; display: block; margin-top: 2px; }
.role-tab:has(input:checked),
.role-tab.selected {
    border-color: #E30613;
    background: rgba(227,6,19,0.05);
}
.role-tab:hover { border-color: rgba(227,6,19,0.4); }

/* Rider extra fields */
.rider-fields { display: none; }
.rider-fields.visible { display: block; }

/* Password strength */
.password-strength { margin-top: 6px; }
.strength-bar {
    height: 4px; border-radius: 2px; background: #E5E7EB; overflow: hidden;
}
.strength-fill {
    height: 100%; border-radius: 2px; transition: all 0.4s;
    width: 0%;
}
.strength-label { font-size: 0.72rem; color: #6B7280; margin-top: 4px; }

/* Auth Divider */
.auth-divider {
    text-align: center; margin: 24px 0; position: relative;
}
.auth-divider::before {
    content: ''; position: absolute; top: 50%; left: 0; right: 0;
    height: 1px; background: #E5E7EB;
}
.auth-divider span {
    background: #FFFFFF; padding: 0 14px;
    position: relative; font-size: 0.8rem; color: #6B7280; font-weight: 500;
}

/* Auth Links */
.auth-links { text-align: center; margin-top: 20px; font-size: 0.875rem; color: #4B5563; }
.auth-links a { color: #E30613; font-weight: 700; }
.auth-links a:hover { color: #B7000B; }

/* Form row */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    .auth-card { padding: 24px 20px; }
}

/* Password toggle */
.pass-field { position: relative; }
.pass-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #6B7280;
    cursor: pointer; font-size: 1rem; padding: 0;
}
.pass-toggle:hover { color: #111827; }

/* Submit button */
.btn-auth {
    width: 100%; padding: 14px; border-radius: 10px;
    background: linear-gradient(135deg, #E30613, #B7000B);
    color: #FFFFFF; border: none; font-size: 1rem; font-weight: 700;
    cursor: pointer; transition: all 0.25s; letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(227, 6, 19, 0.25);
}
.btn-auth:hover:not(:disabled) {
    transform: translateY(-2px); box-shadow: 0 8px 24px rgba(227, 6, 19, 0.4);
}
.btn-auth:disabled { opacity: 0.6; cursor: not-allowed; }

/* Terms */
.terms-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; color: #4B5563; }
.terms-check input[type="checkbox"] { margin-top: 2px; accent-color: #E30613; }
.terms-check a { color: #E30613; font-weight: 600; }

/* Success state */
.auth-success { text-align: center; padding: 24px 0; }
.success-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: #ECFDF5; border: 2px solid #A7F3D0;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; margin: 0 auto 16px;
}
