:root {
  --bg-dark: #0B0E14;
  --input-bg: #151922;
  --input-border: rgb(32 35 42 / 60%);
  --text-primary: rgba(253, 253, 254, 0.99);
  --text-secondary: #A0A0C0;
  --gradient-main: linear-gradient(266.93deg, #EA646C 29.07%, #2226DF 77.3%);
}


/* App normal 
body.app {
  background: #0f0f13;
}
*/

/* ===================================================== */
/* 🔐 LOGIN / REGISTRO — CENTRALIZAÇÃO REAL NO VIEWPORT */
/* ===================================================== */
body.auth {
  min-height: 100vh;
  background: var(--bg-dark);
  overflow-x: hidden;
}


body.auth .container-login {
  min-height: 100vh;
  display: flex;
  justify-content: center;   /* eixo horizontal */
  align-items: center;       /* eixo vertical */
  width: 100%;
  padding: 0;
}

/* Containers
.container-app {
  max-width: 600px;
  margin: 0 auto;
}
   */

.container-login {
  margin: 0 auto;
  padding-top: 0px;
}






.auth-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ellipse {
  position: absolute;
  width: 580px;
  height: 560px;
  border-radius: 50%;

}

/* topo esquerdo */
.ellipse-top {
  top: -200px;
  left: -200px;
  background: linear-gradient(
    116.39deg,
    rgba(3, 254, 254, 0.12) 29.27%,
    rgba(211, 54, 134, 0) 77.42%
  );
  transform: rotate(19.75deg);
}

/* inferior direito */
.ellipse-bottom {
  bottom: -220px;
  right: -200px;
  background: linear-gradient(
    116.39deg,
    rgba(211, 54, 134, 0) 29.27%,
    rgba(3, 254, 254, 0.22) 77.42%
  );
  transform: rotate(29.77deg);
}



.auth-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 48px 16px 30px;
  text-align: center;
}


.auth-logo {
  margin-bottom: 17px;
}

.auth-logo-svg {
  width: 136px;
  height: auto;
}


.auth-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 27px;
  line-height: 33px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 18px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}


.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-group {
  position: relative;
  margin: 0 0 8px;
}

.auth-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 15px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
}

.auth-input::placeholder {
  color: var(--text-secondary);
}


.input-password .auth-input {
  padding-right: 48px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
}



.btn-primary {
  margin-top: 22px;
  height: 51px;
  background: var(--gradient-main);
  border: none;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  color: #fff;
  cursor: pointer;
}



.auth-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
}



.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.auth-divider span {
  flex: 1;
  height: 1px;
  background: rgba(160, 160, 192, 0.25);
}



.btn-secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 51px;
  border-radius: 15px;
  border: 2px solid rgba(50, 60, 86, 0.82);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}




/* ===================================================== */
/* 🔴 ERRO DE INPUT                                     */
/* ===================================================== */
.auth-input.is-error {
  border-color: #ff4d4f;
}

.input-message.error {
  margin-top: 6px;
  font-size: 13px;
  color: #ff4d4f;
  text-align: left;
}

/* ===================================================== */
/* 🟢 SUCESSO DE INPUT                                  */
/* ===================================================== */
.auth-input.is-success {
  border-color: #31ff7a;
}

.input-message.success {
  margin-top: 6px;
  font-size: 13px;
  color: #31ff7a;
  text-align: left;
}


/* =========================================
   🔴 ERROS DE FORMULÁRIO — LOGIN
   Layout alinhado, não centralizado
========================================= */

/* Container do formulário controla espaçamento */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px; /* 🔥 CONTROLA DISTÂNCIA ENTRE CAMPOS */
}



/* Grupo de input */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px; /* 🔥 espaço entre input e erro */
}


/* Erros NÃO centralizados */
.auth-error {
  text-align: left;
  align-self: flex-start;

  font-size: 13px;
  color: #ff5c7c;

  line-height: 1.4;
  margin: 0;
  padding: 0;
}

/* Erro global (ex: rate limit / inválido) */
.auth-error-global,
.auth-error-invalid {
  margin-top: 6px;
  margin-bottom: 4px;
}

/* Erros específicos por campo */
.auth-error-identifier,
.auth-error-password {
  margin-top: 2px;
}

.input-group + .auth-error {
  padding-left: 6px;
}

/* ===================================================== */
/* 🔄 Loader no botão                                   */
/* ===================================================== 

.btn-loader {

  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}


.btn-loader:not([hidden]) {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
*/


/* =========================================
   🔄 LOGIN BUTTON — SPINNER ONLY
   Class: .spinner-login
========================================= */

#login-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  .btn-text {
    display: inline;
  }

  .spinner-login {
    display: none;
    position: absolute;
    align-items: center;
    justify-content: center;
  }

 
  &:disabled {
    .btn-text {
      display: none;
    }

  .spinner-login {
      display: inline-flex;
    }
  }
}

.spinner-login {
    width: 25px;
    height: 25px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}