/* ── Auth layout ── */
.auth-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 36px;
}

/* ── Card ── */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: fadeUp 0.5s ease both;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}
.auth-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  animation: none;
}
.auth-header p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Error alert ── */
.auth-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.875rem;
  margin-bottom: 24px;
}
.auth-error svg { flex-shrink: 0; stroke: #f43f5e; }

/* ── Form fields ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.forgot-link {
  font-size: 0.8rem;
  color: #a5b4fc;
  text-decoration: none;
  transition: color 0.2s;
}
.forgot-link:hover { color: var(--text); }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  stroke: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}

.input-wrap input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 44px 12px 14px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.input-wrap input::placeholder { color: var(--muted); opacity: 0.7; }
.input-wrap input:focus {
  border-color: rgba(99,102,241,0.6);
  background: rgba(99,102,241,0.05);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.toggle-pw:hover { color: var(--text); }
.toggle-pw svg { stroke: currentColor; }

/* ── Remember me ── */
.remember {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--muted);
  user-select: none;
}
.remember input[type="checkbox"] { display: none; }
.check-box {
  width: 18px; height: 18px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.remember input:checked + .check-box {
  background: var(--indigo);
  border-color: var(--indigo);
}
.remember input:checked + .check-box::after {
  content: '';
  width: 10px; height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Full-width button variant ── */
.btn-full {
  width: 100%;
  justify-content: center;
  padding: 13px 24px;
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ── Footer text ── */
.auth-footer-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 24px;
}
.auth-footer-text a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.auth-footer-text a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .auth-header h1 { font-size: 1.6rem; }
}
