.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 40px 20px;
  position: relative;
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color var(--transition);
}
.auth-back:hover { color: var(--text); }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(79,70,229,0.25);
}
.auth-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.auth-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

.auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.auth-field .required { color: var(--negative); }
.auth-field .optional { color: var(--text-muted); font-weight: 400; }

.auth-field input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}
.auth-field input:focus { border-color: var(--primary); }
.auth-field input::placeholder { color: var(--text-muted); }

.auth-password-wrap {
  position: relative;
}
.auth-password-wrap input { padding-right: 48px; }
.auth-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  transition: color var(--transition);
}
.auth-eye:hover { color: var(--text); }

.auth-error {
  padding: 12px 16px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 10px;
  color: var(--negative);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.auth-submit {
  margin-top: 4px;
  padding: 16px;
  font-size: 1.05rem;
}
.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-forgot {
  text-align: right;
  margin-top: -8px;
}
.auth-forgot a {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}
.auth-forgot a:hover { text-decoration: underline; }

.auth-success {
  padding: 12px 16px;
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.2);
  border-radius: 10px;
  color: var(--positive, #14B8A6);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; }
}
