/* ==========================================================================
   AUTH / LOGIN — Enterprise Professional Design
   ========================================================================== */

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

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--surface);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink-800);
  overflow: hidden;
}

/* ==========================================================================
   BACKGROUND SHAPES
   ========================================================================== */

.bg-shapes {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  top: 0;
  left: 0;
}

.bg-shapes span {
  position: absolute;
  display: block;
  width: 120px;
  height: 120px;
  background: rgba(13, 110, 253, 0.06);
  border-radius: 50%;
  animation: move 25s linear infinite;
}

.bg-shapes span:nth-child(1) {
  left: 10%;
  width: 80px;
  height: 80px;
  animation-duration: 18s;
}

.bg-shapes span:nth-child(2) {
  left: 30%;
  width: 150px;
  height: 150px;
  animation-duration: 25s;
}

.bg-shapes span:nth-child(3) {
  left: 50%;
  width: 60px;
  height: 60px;
  animation-duration: 14s;
}

.bg-shapes span:nth-child(4) {
  left: 70%;
  width: 120px;
  height: 120px;
  animation-duration: 20s;
}

.bg-shapes span:nth-child(5) {
  left: 90%;
  width: 90px;
  height: 90px;
  animation-duration: 22s;
}

@keyframes move {
  0% {
    bottom: -150px;
    transform: translateX(0);
  }
  50% {
    transform: translateX(40px);
  }
  100% {
    bottom: 110%;
    transform: translateX(-40px);
  }
}

/* ==========================================================================
   AUTH CONTAINER
   ========================================================================== */

.auth-container {
  width: 820px;
  max-width: 95%;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  animation: fadeIn 0.6s ease;
  position: relative;
}

.auth-wrapper {
  display: flex;
  width: 100%;
  min-height: 340px;
}

/* ==========================================================================
   BRAND PANEL (Left Side — replaces auth-image)
   ========================================================================== */

.auth-brand {
  width: 50%;
  background: linear-gradient(135deg, var(--primary), #1a4fb3);
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  animation: brandGlow 8s ease-in-out infinite alternate;
}

@keyframes brandGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-20px, 20px) rotate(3deg); }
}

.auth-brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.auth-brand-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--white);
  margin: 0 auto 20px;
  backdrop-filter: blur(8px);
  animation: fadeInDown 0.6s ease both;
}

.auth-brand-name {
  font-size: 34px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  animation: fadeInDown 0.6s ease 0.1s both;
}

.auth-brand-tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 16px;
  animation: fadeInDown 0.6s ease 0.15s both;
}

.auth-brand-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInDown 0.6s ease 0.2s both;
}

.auth-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  animation: fadeInDown 0.6s ease 0.25s both;
}

.auth-stat {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-stat-number {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.3px;
}

.auth-stat-label {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.auth-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  animation: fadeInDown 0.6s ease 0.35s both;
}

.auth-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 4px 12px;
  border-radius: 8px;
  min-width: 200px;
}

.auth-feature:hover {
  background: rgba(255, 255, 255, 0.06);
}

.auth-feature i {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

/* ==========================================================================
   AUTH CARD (Right Side)
   ========================================================================== */

.auth-card {
  width: 50%;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  flex-shrink: 0;
}

.auth-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.5px;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-greeting {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  animation: fadeInDown 0.6s ease both;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--ink-500);
  font-weight: 500;
  margin-bottom: 16px;
  animation: fadeInDown 0.6s ease 0.1s both;
}

.auth-benefits {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  animation: fadeInDown 0.6s ease 0.2s both;
}

.auth-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(13, 110, 253, 0.06);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.auth-benefits span i {
  font-size: 10px;
}

.auth-benefits span:hover {
  background: rgba(13, 110, 253, 0.12);
  transform: translateY(-1px);
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

.auth-form-animate .input-group {
  animation: fadeInUp 0.5s ease both;
}

.auth-form-animate .input-group:nth-child(1) { animation-delay: 0.25s; }
.auth-form-animate .input-group:nth-child(2) { animation-delay: 0.35s; }
.auth-form-animate .input-group:nth-child(3) { animation-delay: 0.45s; }

.auth-form-animate .form-options {
  animation: fadeInUp 0.5s ease 0.45s both;
}

.auth-form-animate .btn-primary {
  animation: fadeInUp 0.5s ease 0.55s both;
}

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

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--ink-200);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink-800);
  background: var(--white);
  transition: all 0.2s ease;
  outline: none;
}

.input-group input::placeholder {
  color: var(--ink-400);
}

.input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
}

/* ==========================================================================
   FORM OPTIONS
   ========================================================================== */

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0 18px;
  font-size: 13px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--ink-600);
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.forgot-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: color 0.2s ease;
  min-height: auto;
  min-width: auto;
}

.forgot-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ==========================================================================
   DIVIDER
   ========================================================================== */

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

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

.divider span {
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   GOOGLE BUTTON
   ========================================================================== */

.google-btn {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--ink-200);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  transition: all 0.2s ease;
  font-family: inherit;
}

.google-btn:hover {
  border-color: var(--ink-300);
  background: var(--ink-50);
  transform: translateY(-1px);
}

.google-btn i {
  font-size: 18px;
  color: #4285F4;
}

/* ==========================================================================
   SWITCH PAGE LINK
   ========================================================================== */

.switch-page {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 500;
}

.switch-page a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.switch-page a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ==========================================================================
   MESSAGE
   ========================================================================== */

.msg {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--danger);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .auth-wrapper {
    flex-direction: column-reverse;
  }

  .auth-brand,
  .auth-card {
    width: 100%;
  }

  .auth-brand {
    padding: 32px 28px;
    min-height: 200px;
  }

  .auth-brand-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
    margin-bottom: 14px;
  }

  .auth-brand-name {
    font-size: 24px;
  }

  .auth-brand-tagline {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .auth-brand-desc {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .auth-stats {
    padding: 12px 10px;
    margin-bottom: 18px;
  }

  .auth-stat-number {
    font-size: 16px;
  }

  .auth-stat-label {
    font-size: 9px;
  }

  .auth-features {
    gap: 10px;
  }

  .auth-card {
    padding: 32px 28px;
  }

  .auth-card h2 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .auth-container {
    max-width: 100%;
    margin: 12px;
    border-radius: 12px;
  }

  .auth-brand {
    padding: 24px 20px;
    min-height: 160px;
  }

  .auth-brand-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin-bottom: 12px;
  }

  .auth-brand-name {
    font-size: 20px;
  }

  .auth-brand-desc {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .auth-stats {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    margin-bottom: 16px;
  }

  .auth-stat-divider {
    width: 100%;
    height: 1px;
  }

  .auth-stat-number {
    font-size: 15px;
  }

  .auth-feature {
    font-size: 13px;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .auth-card h2 {
    font-size: 20px;
  }

  .form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
