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

:root {
  --black: #0F0F0F;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --accent: #6366F1;
  --accent-light: #EEF2FF;
  --accent-dark: #4F46E5;
  --red: #EF4444;
  --red-light: #FEF2F2;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--black);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  -webkit-font-smoothing: antialiased;
}

/* LEFT PANEL */
.auth__left {
  background: #0F0F0F;
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.auth__left::before {
  content: '';
  position: absolute;
  top: -200px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.auth__left-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.auth__left-logo-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  overflow: hidden;
}
.auth__left-logo-icon img { width: 100%; height: 100%; object-fit: cover; }

.auth__left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.auth__left-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.auth__left-title span {
  background: linear-gradient(135deg, #818CF8 0%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth__left-subtitle {
  font-size: 0.95rem;
  color: #6B7280;
  line-height: 1.7;
  margin-bottom: 40px;
}

.auth__features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth__feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth__feature-icon {
  width: 36px; height: 36px;
  background: #1A1A1A;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.auth__feature-text {
  font-size: 0.875rem;
  color: #9CA3AF;
}

.auth__feature-text strong { color: #E5E7EB; }

/* RIGHT PANEL */
.auth__right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.auth__box {
  width: 100%;
  max-width: 420px;
}

.auth__box-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.auth__box-subtitle {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 32px;
}

.auth__box-subtitle a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth__box-subtitle a:hover { text-decoration: underline; }

/* TABS */
.auth__tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}

.auth__tab {
  flex: 1;
  padding: 9px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray-600);
}

.auth__tab.active {
  background: white;
  color: var(--black);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

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

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 9px;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--black);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input::placeholder { color: var(--gray-400); }

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.form-input.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-error {
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 5px;
  display: none;
}

.form-error.visible { display: block; }

.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}

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

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ALERT */
.auth__alert {
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.auth__alert.error {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.2);
  display: block;
}

.auth__alert.success {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid rgba(22,163,74,0.2);
  display: block;
}

.auth__alert.warning {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid rgba(217,119,6,0.2);
  display: block;
}

/* DIVIDER */
.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.auth__divider::before,
.auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth__divider-text {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* GOOGLE BTN */
.btn-google {
  width: 100%;
  padding: 11px;
  background: white;
  color: var(--black);
  border: 1.5px solid var(--gray-200);
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}

.btn-google:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.google-icon {
  width: 18px; height: 18px;
}

/* LOADING SPINNER */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  body { grid-template-columns: 1fr; min-height: 100dvh; }
  .auth__left { display: none; }
  .auth__right { padding: 32px 24px; }
}

@media (max-width: 420px) {
  .auth__right { padding: 24px 16px; }
  .auth__box-title { font-size: 1.35rem; }
  .auth__tabs { margin-bottom: 22px; }
  .btn-google { font-size: 0.85rem; padding: 10px; }
}
