/* ===== AUTH - PREMIUM SPLIT SCREEN ===== */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.auth-wrapper {
  display: flex;
  width: 100%;
  max-width: 960px;
  min-height: 600px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
}

/* Left Visual */
.auth-visual {
  flex: 1;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-visual-content {
  position: relative;
  z-index: 2;
}

.auth-visual h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.auth-visual-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
}

.auth-visual-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-visual-stats strong {
  font-size: 1.4rem;
  color: #fff;
}

.auth-visual-stats span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Floating shapes */
.auth-visual-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: white;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: -40px;
  right: -40px;
  animation: floatShape 8s ease-in-out infinite;
}

.shape-2 {
  width: 120px;
  height: 120px;
  bottom: 60px;
  left: -30px;
  animation: floatShape 6s ease-in-out infinite reverse;
}

.shape-3 {
  width: 80px;
  height: 80px;
  bottom: -20px;
  right: 60px;
  animation: floatShape 10s ease-in-out infinite;
}

@keyframes floatShape {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(15px, -15px) scale(1.05);
  }
  66% {
    transform: translate(-10px, 10px) scale(0.95);
  }
}

/* Right Form Panel */
.auth-form-panel {
  flex: 1;
  background: var(--bg-darker);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.auth-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
}

.auth-form-inner {
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}

.auth-form-inner h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-form-inner > .text-muted {
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

/* Input with icon */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 1.2rem;
  pointer-events: none;
}

.input-icon-wrap input {
  padding-left: 44px !important;
  width: 100%;
}

.password-toggle {
  position: absolute;
  right: 8px;
  color: var(--text-muted);
  padding: 4px;
}

/* Submit button */
.btn-auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.btn-auth-submit .material-icons-round {
  font-size: 1.2rem;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

/* Google button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  font-weight: 500;
}

.btn-google img {
  width: 20px;
  height: 20px;
}

/* Auth footer */
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

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

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

/* Light mode */
body.light-mode .auth-form-panel {
  background: #fff;
}

body.light-mode .auth-visual {
  background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 40%, #818cf8 100%);
}

body.light-mode .auth-visual h1 {
  color: #1e1b4b;
}

body.light-mode .auth-visual-stats strong {
  color: #1e1b4b;
}

body.light-mode .auth-visual-stats span {
  color: rgba(30, 27, 75, 0.6);
}

body.light-mode .shape {
  background: #4338ca;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-wrapper {
    flex-direction: column;
    max-width: 440px;
  }
  .auth-visual {
    padding: 2rem;
    min-height: auto;
  }
  .auth-visual h1 {
    font-size: 1.5rem;
  }
  .auth-visual-stats {
    margin-top: 1.5rem;
  }
  .auth-form-panel {
    padding: 2rem;
  }
}
