:root {
  --bg-0: #050811;
  --bg-1: rgba(13, 20, 38, 0.45);
  --bg-2: rgba(23, 33, 56, 0.6);
  --bg-hover: rgba(16, 185, 129, 0.15);
  --border: rgba(16, 185, 129, 0.2);
  --border-strong: rgba(16, 185, 129, 0.45);

  --text-0: #ffffff;
  --text-1: #f8fafc;
  --text-2: #cbd5e1;
  --text-3: #64748b;

  --accent: #10b981; /* Verde de Lucro (Cyber Monkey) */
  --accent-strong: #059669; /* Verde Esmeralda */
  --accent-soft: rgba(16, 185, 129, 0.08);
  --accent-glow: rgba(16, 185, 129, 0.35);

  --ok: #10b981;
  --warn: #f59e0b;
  --err: #ef4444;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --shadow-1: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.6);

  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-1);
  background: radial-gradient(circle at 50% 12%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 12% 82%, rgba(5, 150, 105, 0.03) 0%, transparent 40%),
              #050811;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.login {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  background: rgba(8, 12, 24, 0.82);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(16, 185, 129, 0.08);
  padding: 40px 36px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1;
}

.login__header {
  margin-bottom: 28px;
  text-align: center;
}

.login__title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login__subtitle {
  margin: 6px 0 0 0;
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* Formulário e Inputs */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.25s ease;
}

.field__label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.25s ease;
}

.field:focus-within .field__label {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.input-container {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.75;
  pointer-events: none;
}

.field__input {
  background: rgba(8, 12, 24, 0.72);
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: var(--text-0);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sans);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.field__input::placeholder {
  color: #475569;
  opacity: 0.855;
}

.field__input:hover {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(8, 12, 24, 0.8);
}

.field__input:focus {
  border-color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.28),
              inset 0 1px 2px rgba(0, 0, 0, 0.6);
  background: rgba(5, 8, 17, 0.95);
}

/* Mostrar/esconder senha */
.password-container .field__input {
  padding-right: 42px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--text-3);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  outline: none;
}

.password-toggle:hover {
  color: var(--text-0);
}

/* Botão de Login */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-1);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: 1px solid var(--accent-strong);
  color: #050811;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #34d399, #059669);
  border-color: #059669;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  color: #050811;
  transform: translateY(-1.5px);
}

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

/* Console HUD Box */
.console-box {
  background: #03050b;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: #94a3b8;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}

.console-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-accent { color: #10b981; }
.c-ok { color: #10b981; }
.c-warn { color: #f59e0b; }

.c-blink {
  animation: consoleBlink 1.4s infinite;
}

@keyframes consoleBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
