/* Eskoul Auth - Centered card layout */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  color: #333;
  background-color: #ffffff;
  background-image: radial-gradient(circle, #e0e0e0 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-page-wrap {
  width: 100%;
  max-width: 1000px;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.auth-layout {
  display: flex;
  min-height: 560px;
}

/* Left panel - branded design */
.auth-left {
  flex: 1;
  min-width: 0;
  background: linear-gradient(160deg, #0066CC 0%, #004C99 50%, #003366 100%);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  z-index: 2;
}

.logo-dots-auth {
  display: flex;
  gap: 4px;
}

.logo-dots-auth .dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
}

.logo-text-auth { letter-spacing: -0.5px; }

/* Decorative patterns */
.auth-pattern {
  position: absolute;
  color: rgba(255,255,255,0.08);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  pointer-events: none;
}

.auth-pattern-digits {
  top: 20%;
  right: 10%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.15;
}

.auth-pattern-x {
  top: 40%;
  right: 20%;
  font-size: 24px;
}

.auth-pattern-dots {
  bottom: 60px;
  left: 40px;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 8px 8px;
}

/* Hero content - dynamic login/signup */
.auth-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.auth-hero-content {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.auth-hero-content.auth-hero-hidden {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-hero-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  max-width: 340px;
}

.auth-mock-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  color: #fff;
  font-size: 13px;
}

.auth-mock-card-1 {
  flex: 1 1 100%;
  min-width: 200px;
}

.mock-card-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mock-card-row:last-of-type { margin-bottom: 12px; }

.mock-mini-chart {
  height: 24px;
  background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.15) 60%, rgba(255,255,255,0.1) 100%);
  border-radius: 4px;
  margin-bottom: 10px;
}

.mock-highlight {
  font-size: 12px;
  color: rgba(255,255,255,0.9);
}

.auth-mock-card-2 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-check {
  width: 24px;
  height: 24px;
  background: rgba(52,199,89,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.mock-balance { font-size: 11px; opacity: 0.9; }

.auth-mock-card-3 {
  flex: 1;
}

.mock-list-item {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
}

.mock-list-item:last-child { border-bottom: none; }

/* Signup mock cards */
.auth-hero-cards-signup {
  flex-direction: column;
  max-width: 260px;
}

.auth-mock-card-signup-1,
.auth-mock-card-signup-2,
.auth-mock-card-signup-3 {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mock-step {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.auth-hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.auth-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  max-width: 380px;
}

/* Dots indicator */
.auth-dots-indicator {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: auto;
  padding-bottom: 24px;
  z-index: 2;
}

.auth-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.auth-dot:hover { background: rgba(255,255,255,0.6); }

.auth-dot.active { background: #fff; }

/* Right panel - form */
.auth-right {
  flex: 1;
  min-width: 0;
  max-width: 520px;
  background: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
}

.auth-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.auth-form-panel {
  display: none;
  flex-direction: column;
  flex: 1;
}

.auth-form-panel.active {
  display: flex;
}

.auth-form-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.auth-form-subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 32px;
}

.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.auth-google-btn:hover {
  border-color: #007AFF;
  background: #f8faff;
}

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

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E5E5E5;
}

.auth-divider span {
  font-size: 13px;
  color: #999;
}

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

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

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

.auth-form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.auth-form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.auth-form-group input:focus {
  outline: none;
  border-color: #007AFF;
}

.auth-form-group input.input-error {
  border-color: #FF3B30;
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input { padding-right: 48px; }

.auth-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
}

.auth-password-toggle:hover { color: #666; }

.auth-terms {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.auth-terms a {
  color: #007AFF;
  text-decoration: none;
}

.auth-terms a:hover { text-decoration: underline; }

.auth-submit {
  width: 100%;
  padding: 14px 24px;
  background: #007AFF;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.auth-submit:hover { background: #0056CC; }

.auth-submit:disabled {
  background: #999;
  cursor: not-allowed;
}

.auth-toggle-text {
  margin-top: 24px;
  font-size: 15px;
  color: #333;
}

.auth-toggle-link {
  background: none;
  border: none;
  color: #007AFF;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  padding: 0;
}

.auth-toggle-link:hover { color: #0056CC; }

.auth-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  margin-top: auto;
  font-size: 12px;
  color: #999;
}

.auth-footer a {
  color: #999;
  text-decoration: none;
}

.auth-footer a:hover { color: #666; }

/* Success message */
.auth-success {
  color: #34C759;
  font-size: 14px;
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  body { padding: 16px; }

  .auth-layout {
    flex-direction: column;
    min-height: auto;
  }

  .auth-left {
    min-height: 260px;
    padding: 24px 24px 32px;
  }

  .auth-hero-cards { margin-bottom: 20px; }

  .auth-hero-title { font-size: 24px; }

  .auth-hero-desc { font-size: 14px; }

  .auth-right {
    max-width: none;
    min-width: 0;
    padding: 32px 24px;
  }

  .auth-form-title { font-size: 24px; }

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