/* MyClaw Auth — Bi-Column Layout */

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

:root {
  --fg: #1a1a1a;
  --bg: #faf9f7;
  --accent: #2d5bff;
  --accent-light: #e8edff;
  --muted: #999;
  --border: #e8e6e3;
  --card: #fff;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ========================================
   Bi-Column Wrapper
   ======================================== */
.auth-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ========================================
   Left Column — Dark Branding
   ======================================== */
.auth-left {
  background: var(--fg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
}

.auth-left-content {
  max-width: 400px;
}

.auth-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  text-decoration: none;
  color: #fff;
  display: block;
  margin-bottom: 48px;
}

.auth-logo span { color: var(--accent); }

.auth-left h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
}

.auth-left h2 em {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  color: var(--accent);
}

.auth-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-features li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  padding-left: 24px;
  position: relative;
}

.auth-features li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ========================================
   Right Column — Form
   ======================================== */
.auth-right {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
}

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

/* ========================================
   Flash Messages
   ======================================== */
.auth-alert {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 24px;
}

.auth-notice {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 24px;
}

/* ========================================
   Form Elements
   ======================================== */
.auth-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.auth-subheading {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--card);
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 91, 255, 0.1);
}

.auth-input::placeholder { color: var(--muted); }

.auth-btn {
  width: 100%;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: var(--fg);
  color: #fff;
  transition: all 0.3s;
  margin-top: 20px;
}

.auth-btn:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.auth-footer-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 24px;
  text-align: center;
}

.auth-footer-text a {
  color: var(--fg);
  text-decoration: underline;
}

/* ========================================
   OTP Digit Inputs
   ======================================== */
.otp-digits {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
}

.otp-digit {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-family: 'DM Sans', monospace;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}

.otp-digit:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 91, 255, 0.1);
}

.auth-resend {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

.auth-resend-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
}

.auth-resend-btn:hover { color: #1d4bef; }

.auth-back {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-top: 16px;
}

.auth-back:hover { color: var(--fg); }

/* ========================================
   Responsive — stack at 768px
   ======================================== */
@media (max-width: 768px) {
  .auth-wrapper {
    grid-template-columns: 1fr;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    padding: 32px 24px;
    min-height: 100vh;
  }
}
