@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --border: #e8e8e4;
  --accent: #16a07a;
  --accent-hover: #128f6c;
  --danger: #e05252;
  --text: #1a1a18;
  --text-muted: #8a8a85;
  --text-soft: #b0b0aa;
  --radius: 14px;
  --radius-sm: 8px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  -webkit-font-smoothing: antialiased;
}

/* ── LADO ESQUERDO ── */
.login-left {
  flex: 1;
  background: #0f1a14;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* grade decorativa de fundo */
.login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22,160,122,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,160,122,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* brilho central */
.login-left::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(22,160,122,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.left-top {
  position: relative;
  z-index: 1;
}

.left-logo {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.left-logo span {
  color: var(--accent);
}

.left-center {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
}

.left-center h2 {
  font-size: 32px;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.8px;
  margin-bottom: 1rem;
}

.left-center h2 strong {
  font-weight: 600;
  color: var(--accent);
}

.left-center p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  line-height: 1.6;
  max-width: 280px;
}

.left-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ── LADO DIREITO ── */
.login-right {
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  background: var(--surface);
}

.login-form-wrapper {
  width: 100%;
  max-width: 340px;
}

.form-header {
  margin-bottom: 2.5rem;
}

.form-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 0.3rem;
}

.form-header p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.input-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

input {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
  width: 100%;
}

input::placeholder {
  color: var(--text-soft);
}

input:focus {
  border-color: var(--accent);
  background: var(--surface);
}

button#loginBtn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
  width: 100%;
  margin-top: 8px;
  letter-spacing: 0.1px;
}

button#loginBtn:hover {
  background: var(--accent-hover);
}

button#loginBtn:active {
  transform: scale(0.98);
}

button#loginBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.error {
  font-size: 12px;
  color: var(--danger);
  text-align: center;
  min-height: 18px;
  font-weight: 400;
  margin-top: 8px;
}

.form-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-soft);
  text-align: center;
}

/* ── RESPONSIVO ── */
@media (max-width: 780px) {
  .login-left {
    display: none;
  }

  .login-right {
    width: 100%;
    min-height: 100vh;
  }
}