/* ============================================
   DreamCrafted- Auth Pages (Login / Register)
   ============================================ */

:root {
  --bg-dark: #050a14;
  --bg-card: #0d1525;
  --border: rgba(34, 211, 238, 0.15);
  --cyan: #22d3ee;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --input-light: #f1f5f9;
  --input-dark: #0b1220;
}

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

body.auth-page {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.text-cyan { color: var(--cyan); }

/* Login split layout */
.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-left {
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(ellipse at 30% 50%, rgba(6, 182, 212, 0.08), transparent 60%),
              linear-gradient(180deg, #050a14 0%, #0a1628 100%);
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2322d3ee' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.auth-logo, .auth-card-logo {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
  margin-bottom: 32px;
}

.auth-card-logo {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 8px;
}

.auth-left h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
}

.auth-subtitle {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
  position: relative;
}

.auth-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 36px;
  position: relative;
}

.auth-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
  position: relative;
  max-width: 360px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1rem;
}

.feature-item span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.security-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  max-width: 380px;
  position: relative;
}

.security-check {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid rgba(34, 211, 238, 0.4);
  flex-shrink: 0;
  margin-top: 2px;
}

.security-box strong {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 4px;
}

.security-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Right panel */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: radial-gradient(ellipse at 70% 40%, rgba(6, 182, 212, 0.06), transparent 50%);
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.auth-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.auth-card-sub {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.input-with-icon {
  position: relative;
}

.input-with-icon i:first-child {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.9rem;
  z-index: 1;
}

.form-input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-input.light {
  background: var(--input-light);
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.form-input.dark {
  background: var(--input-dark);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--text);
}

.form-input.light:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.form-input.dark:focus {
  border-color: var(--cyan);
}

.form-input.light::placeholder { color: #94a3b8; }
.form-input.dark::placeholder { color: #475569; }

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  font-size: 0.95rem;
}

.form-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

.forgot-link {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover { text-decoration: underline; }

.btn-auth {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #06b6d4, #22d3ee);
  color: #0b1220;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-auth:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

.btn-google {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}

.btn-google:hover {
  background: rgba(34, 211, 238, 0.08);
}

.auth-footer-text {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-footer-text a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
}

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

/* Register page */
.register-page {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(6, 182, 212, 0.08), transparent 50%),
              var(--bg-dark);
  min-height: 100vh;
}

.register-wrapper {
  width: 100%;
  max-width: 640px;
}

.register-card {
  max-width: 640px;
  padding: 36px 40px;
}

.form-section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  padding-right: 36px;
  cursor: pointer;
}

.select-wrap .select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  font-size: 0.75rem;
}

.checkbox-label.terms {
  margin-bottom: 20px;
}

.checkbox-label.terms a {
  color: var(--cyan);
}

@media (max-width: 900px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
  .auth-left {
    display: none;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Full responsive auth */
@media (max-width: 900px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
  .auth-left {
    display: none;
  }
  .auth-right {
    padding: 24px 16px;
    min-height: 100vh;
  }
  .auth-card {
    max-width: 100%;
    padding: 28px 20px;
  }
  .register-page {
    padding: 24px 12px;
  }
  .register-card {
    padding: 24px 18px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .auth-card h2 {
    font-size: 1.35rem;
  }
  .auth-logo,
  .auth-card-logo {
    font-size: 1.75rem;
  }
  .btn-auth {
    padding: 12px;
  }
}
