/* Auth Container & Box */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 0; background: #f3f4f6; }
.auth-box { background: white; border-radius: 0; box-shadow: none; width: 100%; height: 100vh; max-width: none; display: flex; flex-direction: column; overflow: hidden; }

/* Auth Header */
.auth-header { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); color: white; padding: 25px 20px; text-align: center; flex-shrink: 0; }
.auth-header h1 { margin: 0; font-size: 24px; }
.auth-header p { margin: 5px 0 0 0; opacity: 0.9; font-size: 13px; }

/* Tabs Navigation */
.auth-tabs { display: flex; border-bottom: 1px solid #ddd; flex-shrink: 0; }
.auth-tabs button { flex: 1; padding: 12px; border: none; background: none; cursor: pointer; font-size: 13px; font-weight: 600; color: #666; transition: all 0.3s; }
.auth-tabs button.active { color: #3B82F6; border-bottom: 3px solid #3B82F6; }
.auth-tabs button:hover { background: #f5f5f5; }

/* Content & Forms */
.auth-content { padding: 25px 20px; overflow-y: auto; flex: 1; }
.auth-form { display: none; }
.auth-form.active { display: block; }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #333; font-size: 13px; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; transition: border-color 0.3s; }
.form-group input:focus { outline: none; border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }

/* Buttons */
.btn-submit { width: 100%; padding: 12px; background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); color: white; border: none; border-radius: 5px; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 0.2s; margin-top: 5px; }
.btn-submit:hover { transform: translateY(-2px); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { background: linear-gradient(135deg, #cbd5e1 0%, #a1aec1 100%); cursor: not-allowed; opacity: 0.6; }
.btn-submit:disabled:hover { transform: none; }

/* Messages */
.message { padding: 12px; border-radius: 5px; margin-bottom: 15px; font-size: 13px; }
.message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.message.warning { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }

/* Checkbox & Links */
.checkbox-group { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; padding: 8px; background: #f9fafb; border-radius: 5px; border: 1px solid #e5e7eb; }
.checkbox-group input[type="checkbox"] { margin-top: 2px; cursor: pointer; width: 16px; height: 16px; flex-shrink: 0; }
.checkbox-group label { margin: 0; font-weight: 500; color: #374151; font-size: 12px; cursor: pointer; line-height: 1.4; }
.checkbox-group a { color: #3B82F6; text-decoration: none; font-weight: 600; }
.checkbox-group a:hover { text-decoration: underline; }

/* OTP Specific Styling */
.otp-container { text-align: center; }
.otp-info { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 5px; padding: 12px; margin-bottom: 20px; font-size: 13px; color: #1e40af; line-height: 1.5; }
.otp-input-group { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.otp-input { width: 50px; height: 50px; border: 2px solid #ddd; border-radius: 8px; font-size: 24px; font-weight: 600; text-align: center; transition: border-color 0.3s; }
.otp-input:focus { outline: none; border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.otp-timer { font-size: 13px; color: #666; margin-top: 15px; }
.otp-timer.expired { color: #dc2626; font-weight: 600; }
.btn-resend { background: none; border: none; color: #3B82F6; cursor: pointer; font-size: 13px; font-weight: 600; text-decoration: underline; margin-top: 10px; padding: 0; }
.btn-resend:disabled { color: #999; cursor: not-allowed; text-decoration: none; }

/* Desktop / Tablet Overrides */
@media (min-width: 768px) {
    .auth-container { padding: 20px; }
    .auth-box { border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); width: 100%; max-width: 400px; height: auto; max-height: 90vh; }
    .auth-content { max-height: calc(90vh - 140px); overflow-y: auto; padding: 30px 20px; }
    .auth-header { padding: 30px 20px; }
    .auth-header h1 { font-size: 28px; }
    .auth-header p { font-size: 14px; }
    .auth-tabs button { padding: 15px; font-size: 14px; }
    .form-group { margin-bottom: 15px; }
    .form-group label { font-size: 14px; }
    .message { font-size: 14px; margin-bottom: 20px; }
    .checkbox-group label { font-size: 13px; }
}

.btn-cancel { width: 100%; padding: 12px; background: #f3f4f6; color: #666; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s; margin-top: 10px; text-decoration: none; text-align: center; display: block; }
.btn-cancel:hover { background: #e5e7eb; }

.info-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 5px; padding: 12px; margin-bottom: 20px; font-size: 13px; color: #1e40af; line-height: 1.5; text-align: center; }
.password-requirements { font-size: 12px; color: #666; margin-top: 8px; line-height: 1.6; }
.back-link { text-align: center; margin-top: 15px; }
.back-link a { color: #3B82F6; text-decoration: none; font-size: 13px; font-weight: 600; }
.back-link a:hover { text-decoration: underline; }


