@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --login-bg:         #121212;
  --login-right-bg:   #0d0d0d;
  --login-divider:    #1e1e1e;
  --login-text-1:     #efefef;
  --login-text-3:     #636363;
  --login-text-muted: #a8a8a8;
  --login-border:     #2e2e2e;
  --login-feature-fg: #a8a8a8;
}

html[data-theme="light"] {
  --login-bg:         #eeecea;
  --login-right-bg:   #e6e3e0;
  --login-divider:    #cbc8c4;
  --login-text-1:     #141414;
  --login-text-3:     #7a7a7a;
  --login-text-muted: #3a3a3a;
  --login-border:     #cbc8c4;
  --login-feature-fg: #3a3a3a;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  height: 100vh;
  overflow: hidden;
  background: var(--login-bg);
}

/* ── Layout split ────────────────────────────────────── */
.login-page {
  display: flex;
  height: 100vh;
}

/* ── Painel esquerdo ─────────────────────────────────── */
.login-left {
  width: 48%;
  background: var(--login-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
}

/* gradiente decorativo de fundo */
.login-left::before {
  content: '';
  position: absolute;
  top: -160px;
  left: -160px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(31,138,91,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.login-left::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(31,138,91,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #25d366, #1f8a5b);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(31,138,91,0.3);
}

.brand-icon i {
  color: #fff;
  font-size: 22px;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--login-text-1);
  letter-spacing: -0.3px;
}

/* Headline */
.left-headline h1 {
  font-size: 38px;
  font-weight: 700;
  color: var(--login-text-1);
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.left-headline p {
  font-size: 15px;
  color: var(--login-text-muted);
  line-height: 1.65;
  font-weight: 400;
}

/* Features */
.left-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--login-feature-fg);
  font-weight: 400;
}

.feature-item i {
  width: 28px;
  height: 28px;
  background: rgba(128,128,128,0.08);
  border: 1px solid var(--login-border);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--login-text-3);
  flex-shrink: 0;
}

/* Footer */
.left-footer {
  font-size: 12px;
  color: var(--login-border);
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.footer-links {
  display: inline-flex;
  gap: 12px;
}

.footer-links a {
  color: var(--login-text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--login-text-1);
}

/* ── Painel direito ───────────────────────────────────── */
.login-right {
  width: 52%;
  background: var(--login-right-bg);
  border-left: 1px solid var(--login-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.login-form {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Form header */
.form-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--login-text-1);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.form-header p {
  font-size: 14px;
  color: var(--login-text-muted);
  line-height: 1.5;
}

/* Google button */
.btn-google {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  transition: all .18s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.btn-google:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

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

.google-icon {
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Primary action (já logado) */
.btn-primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #25d366, #1f8a5b);
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: all .18s ease;
  box-shadow: 0 4px 16px rgba(31,138,91,0.25);
}

.btn-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(31,138,91,0.35);
}

/* Ghost button */
.btn-ghost {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  color: var(--login-text-muted);
  padding: 0;
  transition: color .15s;
}

.btn-ghost:hover {
  color: var(--login-text-1);
}

/* Alert */
.alert-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(204,74,58,0.08);
  border: 1px solid rgba(204,74,58,0.2);
  border-radius: 10px;
  font-size: 13px;
  color: #cc4a3a;
}

/* ── Responsivo ──────────────────────────────────────── */
@media (max-width: 768px) {
  .login-left {
    display: none;
  }
  .login-right {
    width: 100%;
    border-left: none;
    background: var(--login-bg);
  }
}
