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

:root {
  --yellow: #f4c430;
  --green: #9bd438;
  --purple: #7040b8;
  --pink: #df609c;

  --dark: #292337;
  --text: #555061;
  --muted: #8d8896;

  --border: #e8e3ed;

  --white: #ffffff;
}

body {
  min-height: 100vh;

  font-family: "Segoe UI", Arial, sans-serif;

  color: var(--text);

  background:
    radial-gradient(circle at 0% 0%, rgba(244, 196, 48, 0.18), transparent 30%),
    radial-gradient(
      circle at 100% 0%,
      rgba(112, 64, 184, 0.16),
      transparent 30%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(223, 96, 156, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(155, 212, 56, 0.13),
      transparent 30%
    ),
    #faf9fc;

  overflow-x: hidden;
}

/* ======================================
   FUNDO
====================================== */

.background {
  position: fixed;

  inset: 0;

  overflow: hidden;

  pointer-events: none;

  z-index: -1;
}

.orb {
  position: absolute;

  border-radius: 50%;

  filter: blur(12px);
}

.orb-yellow {
  width: 330px;
  height: 330px;

  top: -190px;
  left: -130px;

  background: rgba(244, 196, 48, 0.1);
}

.orb-green {
  width: 360px;
  height: 360px;

  bottom: -230px;
  left: 8%;

  background: rgba(155, 212, 56, 0.09);
}

.orb-purple {
  width: 420px;
  height: 420px;

  top: 12%;
  right: -250px;

  background: rgba(112, 64, 184, 0.08);
}

.orb-pink {
  width: 300px;
  height: 300px;

  right: 22%;
  bottom: -220px;

  background: rgba(223, 96, 156, 0.08);
}

/* ======================================
   PÁGINA
====================================== */

.login-page {
  min-height: 100vh;

  padding: 35px 20px;

  display: flex;

  align-items: center;

  justify-content: center;
}

/* ======================================
   CARTÃO
====================================== */

.login-card {
  width: min(450px, 100%);

  padding: 35px 38px 25px;

  background: rgba(255, 255, 255, 0.96);

  border: 1px solid rgba(232, 227, 237, 0.9);

  border-radius: 22px;

  box-shadow:
    0 25px 70px rgba(49, 35, 68, 0.12),
    0 5px 20px rgba(49, 35, 68, 0.05);

  backdrop-filter: blur(20px);
}

/* ======================================
   LOGO
====================================== */

.logo-area {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 12px;

  margin-bottom: 30px;
}

.logo {
  width: 58px;
  height: 58px;

  object-fit: contain;
}

.logo-area h1 {
  color: var(--dark);

  font-size: 18px;

  font-weight: 850;
}

.logo-area span {
  display: block;

  margin-top: 2px;

  color: var(--purple);

  font-size: 9px;

  font-weight: 800;

  letter-spacing: 0.5px;
}

/* ======================================
   WELCOME
====================================== */

.welcome {
  margin-bottom: 25px;
}

.label {
  color: var(--purple);

  font-size: 8px;

  font-weight: 850;

  letter-spacing: 1.4px;
}

.welcome h2 {
  margin-top: 6px;

  color: var(--dark);

  font-size: 28px;

  font-weight: 850;
}

.welcome p {
  margin-top: 5px;

  color: var(--muted);

  font-size: 11px;

  line-height: 1.5;
}

/* ======================================
   CAMPOS
====================================== */

.field {
  margin-bottom: 17px;
}

.field label {
  display: block;

  margin-bottom: 7px;

  color: var(--dark);

  font-size: 10px;

  font-weight: 750;
}

.input-box {
  height: 45px;

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 0 11px;

  background: #fff;

  border: 1px solid #ddd8e5;

  border-radius: 10px;

  transition: 0.2s ease;
}

.input-box:focus-within {
  border-color: var(--purple);

  box-shadow: 0 0 0 3px rgba(112, 64, 184, 0.08);
}

.input-icon {
  width: 22px;

  color: var(--muted);

  font-size: 13px;

  text-align: center;
}

.input-box input {
  flex: 1;

  min-width: 0;

  height: 100%;

  border: none;

  outline: none;

  background: transparent;

  color: var(--dark);

  font-family: inherit;

  font-size: 11px;
}

.input-box input::placeholder {
  color: #aaa5b1;
}

.password-button {
  border: none;

  background: transparent;

  cursor: pointer;

  font-size: 13px;

  opacity: 0.65;

  transition: 0.2s ease;
}

.password-button:hover {
  opacity: 1;
}

/* ======================================
   OPÇÕES
====================================== */

.login-options {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin: 2px 0 18px;
}

.remember {
  display: flex;

  align-items: center;

  gap: 6px;

  color: var(--muted);

  font-size: 9px;

  cursor: pointer;
}

.remember input {
  accent-color: var(--purple);
}

.forgot {
  border: none;

  background: transparent;

  color: var(--purple);

  font-family: inherit;

  font-size: 9px;

  font-weight: 750;

  cursor: pointer;
}

/* ======================================
   MENSAGEM
====================================== */

.message {
  display: none;

  margin-bottom: 14px;

  padding: 10px 12px;

  border-radius: 8px;

  font-size: 9px;

  line-height: 1.4;
}

.message.show {
  display: block;
}

.message.error {
  color: #a32d55;

  background: #fff0f5;

  border: 1px solid #f4c4d4;
}

.message.success {
  color: #527b1c;

  background: #f3fae7;

  border: 1px solid #d9edb8;
}

/* ======================================
   BOTÃO LOGIN
====================================== */

.login-button {
  width: 100%;

  height: 46px;

  border: none;

  border-radius: 10px;

  background: linear-gradient(135deg, var(--purple), #8254c6);

  color: white;

  font-family: inherit;

  font-size: 11px;

  font-weight: 800;

  cursor: pointer;

  box-shadow: 0 10px 22px rgba(112, 64, 184, 0.2);

  transition: 0.2s ease;
}

.login-button:hover {
  transform: translateY(-1px);

  box-shadow: 0 13px 26px rgba(112, 64, 184, 0.26);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.65;

  cursor: not-allowed;

  transform: none;
}

.loading {
  display: none;
}

/* ======================================
   SEGURANÇA
====================================== */

.security {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-top: 20px;

  padding: 11px 12px;

  border-radius: 10px;

  background: #faf8fc;

  border: 1px solid #eeeaf2;
}

.security > span {
  font-size: 16px;
}

.security strong {
  display: block;

  color: var(--dark);

  font-size: 9px;
}

.security small {
  display: block;

  margin-top: 3px;

  color: var(--muted);

  font-size: 8px;

  line-height: 1.35;
}

/* ======================================
   FOOTER
====================================== */

.footer {
  display: flex;

  justify-content: space-between;

  margin-top: 22px;

  padding-top: 17px;

  border-top: 1px solid var(--border);

  color: var(--muted);

  font-size: 8px;
}

/* ======================================
   RESPONSIVO
====================================== */

@media (max-width: 500px) {
  .login-page {
    padding: 20px 12px;
  }

  .login-card {
    padding: 28px 22px 20px;

    border-radius: 18px;
  }

  .logo-area {
    justify-content: flex-start;
  }

  .login-options {
    align-items: flex-start;

    gap: 10px;
  }

  .footer {
    flex-direction: column;

    gap: 5px;
  }
}
