/* ==============================
   LOGIN - O POLVO
================================ */

:root {
  --bg-dark: #0b1216;          /* fundo geral */
  --card-dark: #0f1a20;        /* card */
  --border-dark: #1f2f38;      /* bordas */

  --primary: #00c2a8;          /* verde água / destaque */
  --primary-hover: #00a894;

  --secondary: #1fb6d5;        /* azul oceano */

  --text-light: #e8f1f5;       /* texto principal */
  --text-muted: #8faab5;       /* texto secundário */

  --danger: #ff5c5c;
}


.login-page {
  min-height: 100vh;
  background: radial-gradient(
      circle at top,
      #10232c,
      #070d11 60%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  font-family: 'Inter', 'Roboto', sans-serif;
}

/* Card */
.login-container {
  width: 100%;
  max-width: 420px;
  background: var(--card-dark);
  padding: 42px 34px;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px var(--border-dark),
    0 30px 80px rgba(0, 0, 0, 0.8);
  animation: fadeUp 0.6s ease;
}

/* Títulos */
.login-container h1 {
  color: var(--primary);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

.login-container h2 {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 34px;
}

/* Form */
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-field label {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
}

/* Inputs */
.form-field input {
  height: 46px;
  padding: 0 14px;
  background: #091218;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.form-field input::placeholder {
  color: #6c8894;
}

.form-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 194, 168, 0.25);
}

/* Erros */
.error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--danger);
  display: none;
}

/* Opções */
.options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 30px;
  gap: 12px;
}

.options label {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.options input[type="checkbox"] {
  accent-color: var(--primary);
  margin-right: 6px;
}

/* Recuperar senha */
#recover-password-button {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

#recover-password-button:disabled {
  color: #4c6b75;
  cursor: not-allowed;
}

/* ==============================
   BOTÃO LOGIN + LOADING
================================ */

.login-btn {
  width: 100%;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
  );
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #021012;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(0, 194, 168, 0.35);
}

.login-btn:disabled {
  background: #24343b;
  color: #7d9aa5;
  cursor: not-allowed;
}

/* Texto */
.login-btn .btn-text {
  transition: opacity 0.2s ease;
}

/* Loading */
.login-btn.loading {
  pointer-events: none;
}

.login-btn.loading .btn-text {
  opacity: 0;
}

.login-btn .btn-spinner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(2, 16, 18, 0.25);
  border-top: 3px solid #021012;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 0.8s linear infinite;
  opacity: 0;
}

.login-btn.loading .btn-spinner {
  opacity: 1;
}

/* Cadastro */
.login-container p {
  margin-top: 30px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.login-container a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.login-container a:hover {
  text-decoration: underline;
}

/* Animações */
@keyframes spin {
  to {
    transform: rotate(360deg) translate(-50%, -50%);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsivo */
@media (max-width: 480px) {
  .login-container {
    padding: 34px 24px;
  }

  .login-container h1 {
    font-size: 24px;
  }
}
