/* ============================================================
   NekoTab Auth Pages — Dark-luxury SaaS login/signup
   ============================================================ */

/* ── Base ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: #0a0d1a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #e2e8f0;
  -webkit-font-smoothing: antialiased;
}

/* ── Two-column desktop layout ── */
.auth-form-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

.auth-brand-col {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0a2e 0%, #1e1547 40%, #312e81 100%);
}

@media (min-width: 768px) {
  .auth-brand-col { display: flex; }
}

/* ── Decorative elements on brand column ── */
.auth-brand-col::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.auth-brand-col::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.auth-brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 420px;
}

.auth-brand-logo {
  width: 140px;
  height: auto;
  margin: 0 auto 32px;
  filter: brightness(0) invert(1);
}

.auth-brand-tagline {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #fff;
}

.auth-brand-tagline span {
  background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 50%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-brand-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.auth-brand-features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.auth-brand-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.auth-brand-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ── Card ── */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 40px 32px;
}

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

.auth-card-logo {
  width: 100px;
  height: auto;
  margin: 0 auto 24px;
  display: block;
  filter: brightness(0) invert(1);
}

@media (min-width: 768px) {
  .auth-card-logo { display: none; }
}

.auth-card-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
  color: #fff;
}

.auth-card-subtitle {
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 28px;
}

/* ── Google button ── */
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 20px;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.5;
}

.auth-google-btn:hover {
  background: #f9fafb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.auth-google-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.auth-divider span {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ── Form fields ── */
.auth-field {
  margin-bottom: 18px;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 6px;
}

.auth-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.auth-input::placeholder {
  color: #475569;
}

.auth-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124,58,237,0.3);
  background: rgba(255,255,255,0.06);
}

.auth-input.is-invalid {
  border-color: #ef4444;
}

.auth-help {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
}

.auth-error {
  color: #f87171;
  font-size: 12px;
  margin-top: 4px;
}

.auth-errors-box {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #fca5a5;
}

/* ── Submit button ── */
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  background: #7c3aed;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1.5;
  margin-top: 8px;
}

.auth-submit:hover {
  background: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}

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

/* ── Links & footer text ── */
.auth-forgot {
  display: block;
  text-align: right;
  font-size: 13px;
  color: #7c3aed;
  text-decoration: none;
  margin-top: -10px;
  margin-bottom: 18px;
}

.auth-forgot:hover {
  color: #a78bfa;
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin-top: 24px;
}

.auth-footer a {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

/* ── Password hints ── */
.auth-pw-hints {
  margin: -8px 0 18px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  list-style: none;
}

.auth-pw-hints li {
  font-size: 11px;
  color: #64748b;
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
}

.auth-pw-hints li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #475569;
}
