/* Standalone email/password auth pages (login, register, password reset). */

.email-auth-page {
  min-height: 100dvh;
  margin: 0;
  background: #0b0d14;
  color: #f2f3f7;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.email-auth-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.email-auth-aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.email-auth-aurora-blob--violet {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -60px;
  background: rgba(124, 92, 255, 0.35);
}

.email-auth-aurora-blob--blue {
  width: 280px;
  height: 280px;
  bottom: -60px;
  right: -40px;
  background: rgba(59, 130, 246, 0.25);
}

.email-auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.email-auth-brand {
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(242, 243, 247, 0.72);
  text-decoration: none;
}

.email-auth-brand:hover {
  color: #ffffff;
}

.email-auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(17, 19, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

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

.email-auth-icon,
.email-auth-logo {
  display: block;
  width: 88px;
  height: 61px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.email-auth-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.email-auth-subtitle {
  margin: 0;
  font-size: 13px;
  color: rgba(242, 243, 247, 0.55);
}

.email-auth-errors {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: 12px;
}

.email-auth-error-item + .email-auth-error-item {
  margin-top: 4px;
}

.email-auth-success {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
  font-size: 12px;
}

.email-auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.email-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.email-auth-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(242, 243, 247, 0.78);
}

.email-auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #090d14;
  color: #f2f3f7;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.email-auth-input::placeholder {
  color: rgba(242, 243, 247, 0.35);
}

.email-auth-input:focus {
  border-color: rgba(124, 92, 255, 0.65);
}

.email-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.email-auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(242, 243, 247, 0.55);
  cursor: pointer;
}

.email-auth-checkbox input {
  accent-color: #7c5cff;
}

.email-auth-forgot,
.email-auth-forgot-btn {
  color: #a78bfa;
  font-weight: 600;
  text-decoration: none;
}

.email-auth-forgot:hover,
.email-auth-forgot-btn:hover {
  color: #c4b5fd;
}

.email-auth-forgot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(242, 243, 247, 0.88);
  font-size: 15px;
  font-weight: 700;
  box-sizing: border-box;
}

.email-auth-forgot-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.email-auth-submit {
  margin-top: 4px;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #7c5cff 0%, #6c4ff0 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(108, 79, 240, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.email-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(108, 79, 240, 0.42);
}

.email-auth-submit:active {
  transform: translateY(0);
}

.email-auth-footer {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(242, 243, 247, 0.55);
}

.email-auth-footer a {
  margin-left: 6px;
  color: #a78bfa;
  font-weight: 600;
  text-decoration: none;
}

.email-auth-footer a:hover {
  color: #c4b5fd;
}

@media (max-width: 480px) {
  .email-auth-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .email-auth-title {
    font-size: 22px;
  }
}
