:root {
  --bg: #0B0F1A;
  --panel: rgba(15, 23, 42, 0.94);
  --panel-strong: #111827;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(34, 211, 238, 0.1);
  --line: rgba(148, 163, 184, 0.16);
  --text: #E5E7EB;
  --muted: #9CA3AF;
  --blue: #22D3EE;
  --blue-2: #3B82F6;
  --green: #22C55E;
  --red: #EF4444;
  --radius-xl: 16px;
  --radius-md: 12px;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 140, 255, 0.16), transparent 32rem),
    linear-gradient(135deg, #070b16 0%, var(--bg) 48%, #101827 100%);
  color: var(--text);
  min-height: 100vh;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.login-card {
  width: 100%;
  max-width: 1080px;
  min-height: 620px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-left {
  padding: 48px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.14), transparent 24rem),
    linear-gradient(180deg, rgba(17, 27, 49, 0.96), rgba(11, 16, 32, 0.92));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.22);
}

.login-left h1 {
  margin: 0;
  font-size: 38px;
}

.login-left p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
  font-size: 15px;
}

.login-info {
  margin-top: 34px;
  display: grid;
  gap: 14px;
}

.info-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
}

.info-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.info-box span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}

.form-box {
  width: 100%;
  max-width: 360px;
}

.form-box h2 {
  margin: 0;
  font-size: 30px;
}

.subtitle {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-size: 14px;
  color: #d5def3;
  margin-top: 6px;
}

input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: white;
  outline: none;
  font-size: 14px;
}

input::placeholder {
  color: #7f8aa3;
}

input:focus {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

button {
  margin-top: 14px;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: white;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 12px 24px rgba(34, 211, 238, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.erro-login {
  min-height: 20px;
  margin: 14px 0 0;
  color: #ff9e9e;
  font-size: 13px;
}

.login-status {
  min-height: 20px;
  margin: 6px 0 0;
  color: #7ef0a8;
  font-size: 13px;
}

.login-demo {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.login-demo span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.login-demo strong {
  font-size: 14px;
}

.access-link {
  width: 100%;
  margin-top: 12px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
}

.access-link:hover {
  background: var(--surface-hover);
  border-color: rgba(34, 211, 238, 0.28);
}

@media (max-width: 900px) {
  .login-card {
    grid-template-columns: 1fr;
  }

  .login-left {
    display: none;
  }

  .login-right {
    padding: 28px;
  }
}
