:root {
  --bg-main: #050505;
  --bg-card: rgba(10, 10, 12, 0.88);
  --bg-card-2: rgba(18, 18, 22, 0.72);
  --input-bg: rgba(255, 255, 255, 0.045);

  --red: #e50914;
  --red-2: #ff1f2d;

  --white: #ffffff;
  --text-main: #f5f5f5;
  --text-soft: #a7a7a7;
  --text-muted: #707070;

  --border: rgba(255, 255, 255, 0.09);
  --border-red: rgba(229, 9, 20, 0.45);

  --shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

html, body {
  min-height: 100%;
}

/* BACKGROUND */
body {
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(229, 9, 20, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.055), transparent 28%),
    linear-gradient(180deg, #030303 0%, #08080a 55%, #020202 100%);
  overflow-x: hidden;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.72)),
    url("fundo2.png") center / cover no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-left {
  top: -120px;
  left: -130px;
  background: rgba(229, 9, 20, 0.35);
}

.bg-glow-right {
  right: -150px;
  bottom: -140px;
  background: rgba(255, 255, 255, 0.08);
}

/* LAYOUT */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

/* HEADER */
.top-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-box {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: var(--white);
  font-weight: 900;
}

.brand h1 {
  font-size: 1.75rem;
}

.brand p {
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* FORM */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  color: #d8d8d8;
  font-size: 0.84rem;
  font-weight: 700;
}

/* INPUT */
.field input,
.password-wrapper input {
  width: 100%;
  height: 44px;
  padding: 0 15px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.045) !important;
  color: #fff !important;
  font-size: 0.86rem;
  outline: none;
}

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

.field input:focus {
  border-color: var(--border-red);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.09);
}

/* PASSWORD */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 75px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.toggle-password:hover {
  color: #ff3440;
}

/* OPTIONS */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.87rem;
}

.checkbox input {
  accent-color: var(--red);
}

.forgot-link {
  color: #ff3440;
  font-size: 0.87rem;
  text-decoration: none;
}

.forgot-link:hover {
  color: #fff;
}

/* BUTTON */
.submit-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(229, 9, 20, 0.28);
  transition: 0.2s;
}

.submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* LINKS */
.extra-links {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.82rem;
  margin-top: 4px;
}

.extra-links a {
  color: #ff3440;
  font-weight: 700;
  margin-left: 5px;
}

.extra-links a:hover {
  color: #fff;
}