/* =========================================================
   Mi ReVibe® — Auth CSS
   Archivo: /app/revibe/assets/revibe-auth.css
   Uso: login.php, registro.php, recuperar-password.php,
        restablecer-password.php
   ========================================================= */

:root{
  --rv-auth-bg:#f5fbfc;
  --rv-auth-panel:#ffffff;
  --rv-auth-line:#d8eeeb;
  --rv-auth-line-soft:#edf6f5;
  --rv-auth-text:#14242d;
  --rv-auth-muted:#64748b;
  --rv-auth-teal:#0f766e;
  --rv-auth-teal-dark:#115e59;
  --rv-auth-teal-soft:#e8f7f7;
  --rv-auth-danger:#7a2020;
  --rv-auth-danger-bg:#fff0f0;
  --rv-auth-danger-line:#ffd3d3;
  --rv-auth-input-bg:#edf5ff;
  --rv-auth-shadow:0 24px 70px rgba(15,23,42,.10);
}

html,
body{
  overflow-x:hidden;
}

/* =========================================================
   Auth page background
   ========================================================= */

.rv-login-wrap,
.rv-register-wrap,
.rv-auth-wrap{
  min-height:calc(100vh - 76px);
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);

  display:flex;
  align-items:center;
  justify-content:center;

  padding:42px 18px 70px;

  background:
    radial-gradient(circle at 68% 14%, rgba(20,184,166,.14), transparent 34%),
    linear-gradient(180deg, #f8fefe 0%, var(--rv-auth-bg) 100%);
}

/* =========================================================
   Auth card
   ========================================================= */

.rv-login-card,
.rv-register-card,
.rv-auth-card{
  width:100%;
  max-width:500px;
  background:var(--rv-auth-panel);
  border:1px solid var(--rv-auth-line);
  border-radius:32px;
  padding:34px;
  box-shadow:var(--rv-auth-shadow);
}

.rv-register-card{
  max-width:520px;
}

/* =========================================================
   Brand / heading
   ========================================================= */

.rv-login-brand span,
.rv-register-brand span,
.rv-auth-brand span,
.rv-auth-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-height:32px;
  padding:0 13px;
  border-radius:999px;

  background:var(--rv-auth-teal-soft);
  color:var(--rv-auth-teal);

  font-size:12px;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.rv-login-brand h1,
.rv-register-brand h1,
.rv-auth-brand h1{
  margin:14px 0 10px;
  color:var(--rv-auth-text);
  font-size:46px;
  line-height:1;
  letter-spacing:-.055em;
  font-weight:950;
}

.rv-login-brand p,
.rv-register-brand p,
.rv-auth-brand p{
  margin:0 0 24px;
  color:var(--rv-auth-muted);
  font-size:1rem;
  line-height:1.6;
}

/* =========================================================
   Forms
   ========================================================= */

.rv-login-form,
.rv-register-form,
.rv-auth-form{
  display:grid;
  gap:16px;
}

.rv-login-form label,
.rv-register-form label,
.rv-auth-form label{
  display:grid;
  gap:7px;
  color:var(--rv-auth-text);
  font-weight:900;
  font-size:.96rem;
}

.rv-login-form input[type="text"],
.rv-login-form input[type="email"],
.rv-login-form input[type="password"],
.rv-register-form input[type="text"],
.rv-register-form input[type="email"],
.rv-register-form input[type="password"],
.rv-auth-form input[type="text"],
.rv-auth-form input[type="email"],
.rv-auth-form input[type="password"]{
  width:100%;
  min-height:52px;
  border:1px solid var(--rv-auth-line);
  border-radius:16px;
  padding:0 15px;
  background:var(--rv-auth-input-bg);
  color:var(--rv-auth-text);
  font-size:16px;
  outline:none;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.rv-login-form input:focus,
.rv-register-form input:focus,
.rv-auth-form input:focus{
  border-color:#14b8a6;
  background:#ffffff;
  box-shadow:0 0 0 4px rgba(20,184,166,.12);
}

/* =========================================================
   Buttons
   ========================================================= */

.rv-login-form button,
.rv-register-form button,
.rv-auth-form button,
.rv-auth-button{
  width:100%;
  min-height:56px;
  border:0;
  border-radius:999px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  background:var(--rv-auth-teal);
  color:#ffffff;

  padding:0 22px;
  font-weight:950;
  font-size:16px;

  cursor:pointer;
  box-shadow:0 16px 34px rgba(15,118,110,.20);
  transition:
    background .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

.rv-login-form button:hover,
.rv-register-form button:hover,
.rv-auth-form button:hover,
.rv-auth-button:hover{
  background:var(--rv-auth-teal-dark);
  transform:translateY(-1px);
  box-shadow:0 18px 38px rgba(15,118,110,.25);
}

.rv-login-form button:active,
.rv-register-form button:active,
.rv-auth-form button:active,
.rv-auth-button:active{
  transform:translateY(0);
}

/* =========================================================
   Errors / alerts
   ========================================================= */

.rv-login-error,
.rv-register-error,
.rv-auth-error{
  background:var(--rv-auth-danger-bg);
  color:var(--rv-auth-danger);
  border:1px solid var(--rv-auth-danger-line);
  border-radius:16px;
  padding:13px 15px;
  font-weight:850;
  margin-bottom:18px;
  line-height:1.45;
}

.rv-login-error ul,
.rv-register-error ul,
.rv-auth-error ul{
  list-style:none;
  display:grid;
  gap:8px;
}

/* =========================================================
   Terms checkbox
   ========================================================= */

.rv-register-terms,
.rv-auth-terms{
  display:flex !important;
  align-items:flex-start;
  gap:10px !important;

  color:var(--rv-auth-muted) !important;
  font-size:14px !important;
  line-height:1.45;
  font-weight:500 !important;
}

.rv-register-terms input,
.rv-auth-terms input{
  flex-shrink:0;
  margin-top:4px;
  accent-color:var(--rv-auth-teal);
}

.rv-register-terms span,
.rv-auth-terms span{
  display:block;
}

/* =========================================================
   Links
   ========================================================= */

.rv-login-links,
.rv-register-links,
.rv-auth-links{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:20px;
  flex-wrap:wrap;
}

.rv-login-links a,
.rv-register-links a,
.rv-auth-links a{
  color:var(--rv-auth-teal);
  font-weight:900;
  text-decoration:none;
}

.rv-login-links a:hover,
.rv-register-links a:hover,
.rv-auth-links a:hover{
  color:var(--rv-auth-teal-dark);
}

/* =========================================================
   Legal note
   ========================================================= */

.rv-auth-legal,
.rv-register-legal{
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--rv-auth-line-soft);
  color:var(--rv-auth-muted);
  font-size:.86rem;
  line-height:1.55;
}

/* =========================================================
   Responsive
   ========================================================= */

@media(max-width:720px){
  .rv-login-wrap,
  .rv-register-wrap,
  .rv-auth-wrap{
    min-height:auto;
    padding:34px 16px 54px;
  }

  .rv-login-card,
  .rv-register-card,
  .rv-auth-card{
    padding:30px 24px;
    border-radius:26px;
  }

  .rv-login-brand h1,
  .rv-register-brand h1,
  .rv-auth-brand h1{
    font-size:40px;
  }

  .rv-login-links,
  .rv-register-links,
  .rv-auth-links{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media(max-width:480px){
  .rv-login-wrap,
  .rv-register-wrap,
  .rv-auth-wrap{
    padding:26px 14px 46px;
  }

  .rv-login-card,
  .rv-register-card,
  .rv-auth-card{
    padding:26px 20px;
    border-radius:24px;
  }

  .rv-login-brand h1,
  .rv-register-brand h1,
  .rv-auth-brand h1{
    font-size:36px;
  }

  .rv-login-brand p,
  .rv-register-brand p,
  .rv-auth-brand p{
    font-size:.95rem;
  }

  .rv-login-form button,
  .rv-register-form button,
  .rv-auth-form button,
  .rv-auth-button{
    min-height:54px;
  }
}