/* =============================================
   LOGIN PAGE STYLES
   ============================================= */
.login-body { background: var(--bg-white); overflow: hidden; height: 100vh; }

.login-particles {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}

.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* LEFT */
.login-left {
  background: linear-gradient(150deg, #7B2FBE 0%, #C2185B 60%, #E040A0 100%);
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.login-left-content {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 2;
}
.login-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  align-self: flex-start;
}
.login-back-link:hover { color: #fff; transform: translateX(-4px); }
.login-brand { text-align: center; }
.login-logo { height: 70px; width: auto; margin: 0 auto 20px; }
.login-brand-title { font-size: 2rem; font-weight: 900; color: #fff; margin-bottom: 10px; }
.login-brand-sub { color: rgba(255,255,255,0.82); font-size: 1rem; line-height: 1.6; }
.login-char-area { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.login-char { height: 280px; width: auto; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.2)); animation: float 5s ease-in-out infinite; }
.login-bubble {
  position: absolute;
  top: 20px; right: 0;
  background: rgba(255,255,255,0.95);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 16px;
  max-width: 190px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.login-bubble p { font-size: 0.8rem; color: var(--text-mid); font-weight: 500; line-height: 1.5; }

/* RIGHT */
.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  padding: 40px;
  overflow-y: auto;
}
.login-form-container { width: 100%; max-width: 420px; }

/* TABS */
.login-tabs {
  display: flex;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 32px;
}
.login-tab {
  flex: 1;
  padding: 10px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.login-tab.active {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 16px rgba(123,47,190,0.3);
}

/* FORM */
.form-title { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.form-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}
.btn-google:hover { border-color: var(--primary-light); background: var(--bg-soft); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 20px 0;
}
.form-divider::before, .form-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  pointer-events: none;
}
.input-wrapper input {
  width: 100%;
  padding: 12px 44px 12px 42px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}
.input-wrapper input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(123,47,190,0.1); }
.input-toggle-pw {
  position: absolute; right: 12px;
  background: none; border: none;
  font-size: 1rem; cursor: pointer;
  padding: 4px;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: var(--text-muted); cursor: pointer;
}
.form-link { font-size: 0.88rem; color: var(--primary); font-weight: 600; }
.form-link:hover { text-decoration: underline; }

.btn-full { width: 100%; justify-content: center; border-radius: var(--radius-md); }

.form-switch { text-align: center; font-size: 0.9rem; color: var(--text-muted); margin-top: 16px; }
.form-switch a { color: var(--primary); font-weight: 700; }

.form-message { margin-top: 12px; text-align: center; font-size: 0.9rem; }
.form-message.success { color: #22c55e; }
.form-message.error { color: var(--accent-magenta); }

/* TOAST */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 768px) {
  .login-body { overflow: auto; }
  .login-page { grid-template-columns: 1fr; min-height: auto; }
  .login-left { min-height: auto; }
  .login-left-content { padding: 32px 24px; }
  .login-char { height: 180px; }
  .login-right { padding: 32px 20px; }
  .login-form-container { max-width: 100%; }
}
