/* Account module: register/login page specific styles. */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  position: relative;
  overflow: hidden;
}

.auth-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212,245,90,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 0%, transparent 75%);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius2);
  padding: 40px 40px 36px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: fadeUp .5s ease both;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 32px;
}

.auth-logo-icon {
  width: 48px;
  height: 48px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-logo-icon svg { width: 18px; height: 18px; }
.auth-logo-icon img { width: 48px; height: 48px; object-fit: contain; }
.auth-heading { margin-bottom: 6px; }

.auth-heading h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.auth-heading p { color: var(--text2); font-size: 14px; margin-top: 6px; }
.auth-divider { height: 1px; background: var(--border); margin: 24px 0; }
.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.auth-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  letter-spacing: -0.01em;
}

.auth-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.auth-input::placeholder { color: rgba(240,237,232,0.25); }

.auth-input:focus {
  border-color: rgba(212,245,90,0.4);
  box-shadow: 0 0 0 3px rgba(212,245,90,0.08);
}

.auth-input.input-error { border-color: rgba(255, 90, 90, 0.5); }
.auth-error { font-size: 12px; color: #ff6b6b; margin-top: 2px; }

.auth-error-summary {
  background: rgba(255,90,90,0.08);
  border: 1px solid rgba(255,90,90,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #ff6b6b;
  margin-bottom: 16px;
}

.auth-error-summary ul { padding-left: 16px; }
.auth-remember { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }

.auth-remember input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 5px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.auth-remember input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }

.auth-remember input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: 2px solid #111;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.auth-remember label { font-size: 13px; color: var(--text2); cursor: pointer; user-select: none; }

.auth-submit {
  width: 100%;
  background: var(--accent);
  color: #111;
  border: none;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  letter-spacing: -0.01em;
}

.auth-submit:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212,245,90,0.2);
}

.auth-submit:active { transform: translateY(0); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text2); }

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity .15s;
}

.auth-footer a:hover { opacity: .8; }

@media (max-width: 900px) {
  .auth-card { padding: 30px 22px 28px; }
}
