@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,400&display=swap");

/* ─── ODYSSEIA AUTH TOKENS (Obsidiana, Mármore Carrara & Prata) ── */
:root {
  color-scheme: dark;
  --void: #050505;
  --surface-1: #0B0B0C;
  --surface-2: #121214;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);

  --text-1: #F5F5F2;
  --text-2: #A8A7A2;
  --text-3: #6E6E6A;
  --text-4: #4E4E4B;

  --accent: #F5F5F2;
  --accent-hi: #FFFFFF;
  --accent-sub: rgba(245, 245, 242, 0.06);
  --accent-border: rgba(245, 245, 242, 0.18);
  --accent-glow: rgba(245, 245, 242, 0.16);

  --danger: #f87171;
  --danger-bg: rgba(239, 68, 68, 0.10);
  --danger-border: rgba(239, 68, 68, 0.28);
  --success: #4ade80;
  --success-bg: rgba(34, 197, 94, 0.10);
  --success-border: rgba(34, 197, 94, 0.28);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-roman: 'Cinzel', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Emil Kowalski custom easing curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-press: 140ms;
  --t-fast: 180ms;
  --t-base: 260ms;
}

/* ─── RESET ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: var(--void);
}

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* ─── AUTH SHELL ─────────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  position: relative;
  z-index: 1;
  background: var(--void);
}

/* Subtle chiaroscuro gallery ambient */
.auth-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 55% at 28% 35%, rgba(255, 255, 255, 0.055) 0%, transparent 72%),
    radial-gradient(ellipse 46% 52% at 88% 82%, rgba(255, 255, 255, 0.025) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── LEFT MONUMENTAL STATUE PANEL ────────────────── */
.auth-left {
  display: none;
  flex: 1.08;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px;
  background: var(--void);
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* Chiaroscuro Odysseus marble statue backdrop */
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.14) 0%, rgba(5, 5, 5, 0.30) 48%, rgba(5, 5, 5, 0.94) 90%, #050505 100%),
    url('/assets/odysseus-hero.jpg') center 18% / contain no-repeat;
  mix-blend-mode: lighten;
  opacity: 0.94;
  pointer-events: none;
  z-index: 0;
  animation: authStatueReveal 720ms var(--ease-out) both;
}

@keyframes authStatueReveal {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 0.92;
    transform: scale(1);
  }
}

@media (min-width: 900px) {
  .auth-left {
    display: flex;
  }
}

.auth-left-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, black 0%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, black 0%, transparent 90%);
  pointer-events: none;
}

.auth-left-orb {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 440px;
  height: 440px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.auth-left-content {
  position: relative;
  z-index: 2;
  max-width: 460px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--marble, #F5F5F2);
}

.auth-badge-text {
  font-family: var(--font-roman);
  font-size: 11px;
  color: var(--text-1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-left-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.8rem + 1.8vw, 3.5rem);
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin-bottom: 16px;
}

.auth-left-sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 390px;
}

/* ─── RIGHT FORM PANEL ────────────────────────────── */
.auth-right {
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.auth-form-wrap {
  width: 100%;
  animation: authIn 440ms var(--ease-out) both;
}

@keyframes authIn {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Logo lockup */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
  text-decoration: none;
}

.auth-logo-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(155deg, #242428, #0A0A0C);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
  font-family: var(--font-roman);
  font-size: 17px;
  font-weight: 600;
  flex-shrink: 0;
}

.auth-logo-name {
  font-family: var(--font-roman);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.1;
}

.auth-logo-label {
  font-size: 10.5px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
}

.auth-heading {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 8px;
}

.auth-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ─── FORM ────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: max(14px, 1em);
  outline: none;
  transition:
    border-color var(--t-fast) ease,
    background-color var(--t-fast) ease;
}

.form-control::placeholder {
  color: var(--text-4);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.065);
  border-color: var(--text-1);
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-1);
  -webkit-box-shadow: 0 0 0 1000px #121214 inset;
  box-shadow: 0 0 0 1000px #121214 inset;
  caret-color: var(--text-1);
  transition: background-color 5000s ease-in-out 0s;
}

/* ─── BUTTON (Emil: scale(0.97) press, hover gated) ─ */
.btn-auth {
  position: relative;
  width: 100%;
  height: 48px;
  margin-top: 6px;
  background: var(--text-1);
  color: var(--void);
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 30px -12px rgba(255, 255, 255, 0.35);
  transition:
    background-color var(--t-fast) ease,
    transform var(--t-press) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn-auth:hover:not(:disabled) {
    background: var(--accent-hi);
    transform: translateY(-1px);
  }
}

.btn-auth:active {
  transform: scale(0.97) !important;
}

.btn-auth:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── ALERTS ──────────────────────────────────────── */
.auth-alert {
  display: none;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.auth-alert.error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}

.auth-alert.success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

/* ─── FOOTER ──────────────────────────────────────── */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-3);
}

.auth-footer a {
  color: var(--text-1);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--t-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
  .auth-footer a:hover {
    opacity: 0.78;
  }
}

.auth-copyright {
  text-align: center;
  margin-top: 28px;
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 0.04em;
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 480px) {
  .auth-right {
    padding: 32px 20px;
  }

  .auth-logo {
    margin-bottom: 32px;
  }

  .auth-heading {
    font-size: 28px;
  }

  .auth-form-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {

  .auth-left::before,
  .auth-form-wrap {
    animation: none !important;
    transform: none !important;
  }
}