.header-user { 
    display:flex; 
    align-items:center; 
    gap:8px; 
    position: relative;
    z-index: 100;
}
.user-pill { 
    display:inline-flex; 
    align-items:center; 
    gap:8px; 
    padding:8px 14px; 
    border-radius:9999px; 
    background:#f3f4f6; 
    color:#111827; 
    font-size:14px; 
    font-weight:500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.user-pill:hover {
    background:#e5e7eb;
    border-color:#d1d5db;
}
.user-pill:focus {
    outline:2px solid #3b82f6;
    outline-offset:2px;
}
.user-pill .avatar { 
    width:24px; 
    height:24px; 
    border-radius:50%; 
    background:linear-gradient(135deg, #3b82f6, #2563eb); 
    display:inline-block;
    flex-shrink:0;
}
.user-menu { 
    position:relative; 
}
.user-menu button { 
    background:transparent; 
    border:none; 
    cursor:pointer; 
}
.user-dropdown { 
    position:absolute; 
    right:0; 
    top:calc(100% + 8px); 
    background:#fff; 
    border:1px solid #e5e7eb; 
    border-radius:8px; 
    box-shadow:0 10px 25px rgba(0,0,0,0.15); 
    padding:8px 0; 
    min-width:200px; 
    display:none;
    z-index:1000;
}
.user-dropdown a, .user-dropdown button { 
    display:block; 
    width:100%; 
    text-align:left; 
    padding:10px 16px; 
    background:transparent; 
    border:none; 
    color:#111827; 
    cursor:pointer; 
    font-size:14px;
    transition: background 0.2s ease;
}
.user-dropdown a:hover, .user-dropdown button:hover {
    background:#f3f4f6;
}
.user-dropdown button#logoutBtn {
    color:#dc2626;
    font-weight:500;
}
.user-dropdown button#logoutBtn:hover {
    background:#fee2e2;
    color:#991b1b;
}
.user-menu.open .user-dropdown { 
    display:block; 
}
/* Authentication Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #1e3a8a;
    margin: 0;
    font-size: 2rem;
}

.auth-header h2 {
    color: #6b7280;
    margin: 10px 0 0 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.auth-form {
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-section h3 {
    margin: 0 0 15px 0;
    color: #374151;
    font-size: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #374151;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.radio-option:hover {
    background-color: #f3f4f6;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
    margin: 0;
}

.radio-option span {
    color: #374151;
    font-size: 14px;
    user-select: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Phone number validation feedback */
.form-group input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group input.valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Terms and Conditions Section */
.terms-section {
    margin-bottom: 20px;
    padding: 15px 20px;
}

.terms-group {
    margin-bottom: 0;
}

.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    width: 100%;
}

.terms-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #3b82f6;
}

.terms-text {
    flex: 1;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.terms-link {
    color: #3b82f6;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.terms-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.required-asterisk {
    color: #dc2626;
    margin-left: 2px;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-link {
    background: none;
    color: #3b82f6;
    text-decoration: underline;
}

.btn-link:hover {
    color: #2563eb;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.auth-footer a {
    color: #3b82f6;
    text-decoration: none;
}

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

.auth-message {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: left;
    font-size: 0.9375rem;
    line-height: 1.5;
    display: none;
}

.auth-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}

.auth-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

.auth-message.success::before {
    content: "✓ ";
    font-weight: bold;
    margin-right: 4px;
}

.auth-message.error::before {
    content: "⚠ ";
    font-weight: bold;
    margin-right: 4px;
}

.otp-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f9ff;
    border-radius: 6px;
}

.otp-email {
    font-weight: 600;
    color: #1e3a8a;
    margin: 5px 0;
}

.otp-method {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 5px 0;
}

.otp-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.otp-actions .btn {
    width: 100%;
}

/* Help Section Styles */
.help-section {
    margin: 25px 0;
    padding: 20px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
}

.help-section h4 {
    margin: 0 0 15px 0;
    color: #0369a1;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-text {
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.help-text p {
    margin: 0 0 12px 0;
}

.help-text ul {
    margin: 8px 0 12px 20px;
    padding: 0;
}

.help-text li {
    margin-bottom: 6px;
    color: #4b5563;
}

.help-text strong {
    color: #1f2937;
}

/* Email Verification Page Styles */
.verification-content {
    text-align: center;
    margin-bottom: 30px;
}

.verification-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.verification-icon svg {
    color: #3b82f6;
    width: 64px;
    height: 64px;
}

.verification-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.verification-description {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 24px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.email-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f3f4f6;
    border-radius: 8px;
    margin: 20px 0;
}

.email-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.email-value {
    color: #111827;
    font-size: 0.9375rem;
    font-weight: 600;
}

.otp-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.otp-input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5em;
    text-align: center;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
}

.otp-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.otp-input::placeholder {
    letter-spacing: 0.3em;
    color: #9ca3af;
}

.otp-toggle-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color 0.2s;
    border-radius: 4px;
}

.otp-toggle-btn:hover {
    color: #374151;
    background: #f3f4f6;
}

.otp-toggle-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.form-help-text {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.875rem;
}

.btn-verify {
    margin-top: 8px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    min-height: 48px;
}

.btn-verify .btn-text {
    display: inline-block;
}

.btn-verify .btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-verify.loading .btn-text {
    opacity: 0;
}

.btn-verify.loading .btn-loader {
    display: inline-flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.auth-actions .btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: transparent;
    color: #3b82f6;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.auth-actions .btn-link:hover {
    background: #f0f9ff;
    border-color: #3b82f6;
    color: #2563eb;
}

.auth-actions .btn-link svg {
    flex-shrink: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive Design */
@media (max-width: 600px) {
    .auth-card {
        padding: 20px;
        margin: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .verification-title {
        font-size: 1.5rem;
    }
    
    .verification-description {
        font-size: 0.9375rem;
    }
    
    .otp-input {
        font-size: 1.25rem;
        padding: 12px 45px 12px 14px;
    }
    
    .email-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 16px;
    }
} 