/* ============================================
   LOGIN PAGE — Scandinavian Minimalist
   Light theme, Inter font, no glass/blur/glow
   ============================================ */

/* ── Body ── */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 64px;
  background-color: var(--primary-bg);
  color: var(--primary-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Color clouds — ambient gradient wash */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle 380px at 8% 12%, rgba(209, 77, 106, 0.42), transparent 65%),
    radial-gradient(ellipse 420px 280px at 88% 6%, rgba(115, 83, 186, 0.36), transparent 60%),
    radial-gradient(ellipse 300px 380px at 42% 88%, rgba(45, 159, 214, 0.33), transparent 60%);
  filter: blur(80px);
  animation: cloudPulse1 8s ease-in-out infinite;
}

body::after {
  background:
    radial-gradient(ellipse 340px 260px at 72% 48%, rgba(209, 77, 106, 0.26), transparent 55%),
    radial-gradient(circle 300px at 18% 58%, rgba(115, 83, 186, 0.22), transparent 55%);
  filter: blur(80px);
  animation: cloudPulse2 11s ease-in-out infinite;
}

@keyframes cloudPulse1 {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.08); }
}

@keyframes cloudPulse2 {
  0%, 100% { opacity: 1; transform: scale(1.05); }
  50%      { opacity: 0.55; transform: scale(0.95); }
}

body > *:not(header) {
  position: relative;
  z-index: 1;
}

/* ── Login container: two-column layout ── */
.login-container {
  display: flex;
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 0;
}

/* ── Left side with form ── */
.login-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
}

/* Divider: simple 1px solid line */
.login-left::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  height: 80%;
  width: 1px;
  background: #E5E7EB;
}

/* ── Form wrapper: white card, prominent shadow ── */
.form-wrapper {
  width: 100%;
  max-width: 480px;
  padding: 48px 40px;
  background: var(--secondary-bg);
  border: 1px solid var(--page-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ── Form heading ── */
.form-wrapper h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: var(--primary-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.form-intro {
  color: var(--secondary-text);
  margin-bottom: 36px;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ── Social login buttons ── */
.social-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  background: #F3F4F6;
  border: 1px solid var(--page-border);
  color: var(--primary-text);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
}

.social-button:hover {
  background: #E5E7EB;
  border-color: #D1D5DB;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.google-button:hover {
  border-color: rgba(66, 133, 244, 0.35);
}

.microsoft-button:hover {
  border-color: rgba(0, 120, 212, 0.35);
}

/* ── Separator ── */
.separator {
  display: flex;
  align-items: center;
  margin: 28px 0;
  color: var(--muted-text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}

.separator span {
  padding: 0 18px;
}

/* ── Form elements ── */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--secondary-text);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  background-color: var(--secondary-bg);
  border: 1px solid var(--page-border);
  color: var(--primary-text);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus {
  border-color: var(--highlight-color);
  box-shadow: 0 0 0 3px rgba(230, 57, 98, 0.08);
  outline: none;
  background-color: var(--secondary-bg);
}

.form-group input::placeholder {
  color: var(--muted-text);
}

/* ── Forgot password link ── */
.forgot-password-link {
  text-align: right;
  margin-bottom: 28px;
}

.forgot-password-link a {
  color: var(--highlight-color);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-password-link a:hover {
  color: var(--highlight-hover);
  text-decoration: underline;
}

/* ── Login button: rose→charcoal gradient ── */
.login-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #D14D6A 0%, #1F2937 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  letter-spacing: 0.3px;
}

.login-button:hover {
  background: linear-gradient(135deg, #B8455E 0%, #111827 100%);
  box-shadow: var(--shadow-lg);
  animation: ctaBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.login-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* ── Register link ── */
.register-link {
  text-align: center;
  color: var(--secondary-text);
  font-size: 0.9rem;
}

.register-link a {
  color: var(--highlight-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.register-link a:hover {
  color: var(--highlight-hover);
  text-decoration: underline;
}

/* ── Back to login link ── */
.back-to-login-link {
  text-align: center;
  margin-top: 20px;
}

.back-to-login-link a {
  color: var(--highlight-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.back-to-login-link a:hover {
  color: var(--highlight-hover);
  text-decoration: underline;
}

/* ── Hidden elements ── */
.hidden {
  display: none;
}

/* ── Message boxes: light tint, colored border, no blur ── */
.message-box {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.error-message {
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
}

.success-message {
  background-color: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #16A34A;
}

/* ── Right side with graphic and tips ── */
.login-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.graphic-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  width: 100%;
}

/* ── Ambient orb: pale, barely visible ── */
.ambient-orb {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 40%,
    rgba(230, 57, 98, 0.06) 0%,
    rgba(124, 58, 237, 0.03) 40%,
    transparent 70%
  );
  filter: blur(50px);
  animation: float 6s ease-in-out infinite;
  margin: 20px auto;
}

@keyframes float {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.02);
  }
  100% {
    transform: translateY(0px) scale(1);
  }
}

/* ── Tip box: white card, rose left border ── */
.tip-box {
  background: var(--secondary-bg);
  border: 1px solid var(--page-border);
  border-left: 3px solid var(--highlight-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tip-box:hover {
  border-left-color: var(--highlight-hover);
  box-shadow: var(--shadow-md);
}

.tip-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.15rem;
  color: var(--highlight-color);
  font-weight: 600;
  letter-spacing: -0.01em;
}

#tip-content {
  color: var(--secondary-text);
  line-height: 1.7;
}

#tip-content p {
  margin: 0;
}

/* ── Benefits list ── */
.benefits {
  width: 100%;
  margin-top: 24px;
  background: var(--secondary-bg);
  border: 1px solid var(--page-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.benefit-item {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 4px 0;
}

.benefit-item:last-child {
  margin-bottom: 0;
}

.benefit-icon {
  margin-right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.benefit-text {
  color: var(--secondary-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .login-container {
    flex-direction: column;
    padding: 30px 20px;
  }

  .login-left {
    width: 100%;
    margin-bottom: 40px;
  }

  .login-left::after {
    display: none;
  }

  .login-right {
    width: 100%;
  }

  .form-wrapper {
    max-width: 100%;
  }

  .ambient-orb {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .form-wrapper {
    padding: 36px 28px;
  }

  .form-wrapper h1 {
    font-size: 2rem;
  }

  .ambient-orb {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .form-wrapper {
    padding: 28px 20px;
  }

  .form-wrapper h1 {
    font-size: 1.8rem;
  }

  .form-intro {
    font-size: 1rem;
  }

  .login-container {
    padding: 20px 15px;
  }
}
