*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.auth-body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 60%, #1B5E20 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.auth-wrapper {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.auth-logo {
  text-align: center;
  color: #fff;
}

.auth-logo-icon { font-size: 52px; margin-bottom: 8px; }
.auth-logo h1   { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.auth-logo p    { font-size: 13px; opacity: 0.8; margin-top: 4px; }

.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 28px 24px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.auth-tabs {
  display: flex;
  background: #f0f4f8;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: #777;
}

.auth-tab.active { background: #1565C0; color: #fff; }

.auth-field { margin-bottom: 14px; }

.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
}

.auth-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e0e7ef;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #1a1a2e;
  background: #fafbfd;
}

.auth-field input:focus {
  border-color: #1565C0;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
  background: #fff;
}

.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }

.eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  line-height: 1;
}

/* Password strength */
.password-strength {
  height: 4px;
  background: #eee;
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.3s, background 0.3s;
}

.strength-label {
  font-size: 11px;
  margin-top: 4px;
  color: #888;
}

.auth-forgot { text-align: right; margin-bottom: 14px; margin-top: -6px; }

.link-btn {
  background: none;
  border: none;
  color: #1565C0;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.link-btn.mt { display: block; margin-top: 12px; text-align: center; }

.auth-btn {
  width: 100%;
  padding: 12px;
  background: #1565C0;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
}

.auth-btn:hover    { background: #0D47A1; }
.auth-btn:active   { transform: scale(0.98); }
.auth-btn:disabled { background: #90CAF9; cursor: not-allowed; transform: none; }

.auth-error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}

.auth-hint {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.5;
}

.auth-consent {
  font-size: 11px;
  color: #888;
  margin-bottom: 12px;
  line-height: 1.5;
}

.auth-consent a { color: #1565C0; }

.auth-links {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.auth-links a    { color: rgba(255,255,255,0.8); text-decoration: none; }
.auth-links a:hover { color: #fff; }
.auth-links span { color: rgba(255,255,255,0.4); }

.auth-footer {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
}

/* Mobile */
@media (max-width: 480px) {
  .auth-card { padding: 22px 18px 20px; border-radius: 16px; }
  .auth-logo h1 { font-size: 24px; }
}