.auth-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
.auth-modal-overlay.open { display: flex; }

.auth-card { 
  background: #FFFFFF; 
  border-radius: 16px; 
  border: 1px solid #E5E7EB; 
  box-shadow: 0 12px 40px rgba(0,0,0,0.15); 
  width: 90%; 
  max-width: 500px; 
  padding: 32px 48px; 
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  color: #374151;
}

.auth-card *, .auth-card *::before, .auth-card *::after {
  box-sizing: border-box;
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all 0.2s;
}
.auth-modal-close:hover { background: #F3F4F6; color: #1A1A2E; }

.auth-nav-logo { font-size: 24px; font-weight: 700; color: #1A1A2E; text-align: center; display: block; margin-bottom: 16px; text-decoration: none; }
.auth-nav-logo .logo-check { color: #2ECC71; }
.auth-nav-logo .logo-revision { color: #2ECC71; }

.auth-title { font-size: 24px; font-weight: 700; color: #1A1A2E; text-align: center; margin: 0 0 16px 0; line-height: 1.3; }
.auth-title .highlight { color: #2ECC71; }

.auth-google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; background: #FFF !important; border: 1px solid #E5E7EB !important; border-radius: 12px; height: 48px; font-size: 15px; font-weight: 600; color: #374151 !important; cursor: pointer; transition: background 0.2s; margin-bottom: 16px; padding: 0; }
.auth-google-btn:hover { background: #F8F9FA !important; }
.auth-google-btn svg { width: 20px; height: 20px; }

.auth-divider { display: flex; align-items: center; text-align: center; margin-bottom: 16px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid #D1D5DB; }
.auth-divider:not(:empty)::before { margin-right: 16px; }
.auth-divider:not(:empty)::after { margin-left: 16px; }
.auth-divider-text { font-size: 12px; color: #6B7280; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.auth-form-group { margin-bottom: 16px; text-align: left; }
.auth-label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.auth-input { width: 100%; background: #FFF !important; border: 1px solid #D1D5DB !important; border-radius: 8px; padding: 12px 14px; font-size: 15px; color: #1A1A2E; transition: border-color 0.2s; font-family: inherit; margin: 0; outline: none; }
.auth-input:focus { border-color: #2ECC71 !important; box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1); }
.auth-input::placeholder { color: #9CA3AF; }

.forgot-link { display: block; text-align: right; font-size: 13px; color: #2ECC71; font-weight: 600; text-decoration: none; margin-top: 8px; }
.forgot-link:hover { text-decoration: underline; }

.auth-submit-btn { width: 100%; background: #2ECC71 !important; color: #FFF !important; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; padding: 14px; cursor: pointer; transition: background 0.2s; margin-top: 4px; margin-bottom: 16px; }
.auth-submit-btn:hover { background: #27AE60 !important; }

.auth-terms { font-size: 12px; color: #9CA3AF; text-align: center; line-height: 1.5; margin: 0; }
.auth-terms a { color: #2ECC71; text-decoration: none; font-weight: 500;}
.auth-terms a:hover { text-decoration: underline; }

.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: #6B7280; }
.auth-switch a { color: #2ECC71; font-weight: 600; text-decoration: none; cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }

.auth-view { display: none; }
.auth-view.active { display: block; }

/* Verification state specific */
.verify-subtext { font-size: 15px; color: #6B7280; text-align: center; margin: 0 0 32px 0; }
.verify-code-boxes { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.verify-code-input { width: 48px; height: 56px; background: #FFF !important; border: 1px solid #D1D5DB !important; border-radius: 12px; font-size: 24px; font-weight: 700; text-align: center; color: #1A1A2E; margin: 0; outline: none; transition: border-color 0.2s; }
.verify-code-input:focus { border-color: #2ECC71 !important; box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1); }
.verify-resend { font-size: 13px; color: #9CA3AF; text-align: center; margin-top: 24px; }
.verify-resend a { color: #2ECC71; text-decoration: none; font-weight: 600; cursor: pointer; }
.verify-resend a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .auth-card { padding: 32px 24px; margin: 0 16px; }
  .verify-code-input { width: 40px; height: 48px; font-size: 20px; }
}
