/* ==================================================
   AUTH BODY – FUNDO GLOBAL
================================================== */

.auth-body {
  min-height: 100vh;
  background-color: #0f172a;
  background-image: url("../images/banners/bg-login-desktop.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ==================================================
   HEADER AUTH (DESKTOP)
================================================== */

.auth-header {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.auth-header .brand img {
  height: 42px;
}

.auth-header .actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.auth-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ==================================================
   CONTAINER PRINCIPAL (DESKTOP)
================================================== */

.auth-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: calc(100vh - 64px);
}

/* ==================================================
   VISUAL ESQUERDO
================================================== */

.auth-visual {
  background-image: url("../images/banners/desktop-ilustraction.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center left;
  padding: 40px;
}

/* ==================================================
   CARD LOGIN
================================================== */

.auth-card-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.auth-card {
  width: 100%;
  max-width: 560px;

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

  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);

  /* opcional elegante e moderno */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ==================================================
   BOTÃO OUTLINE ROXO
================================================== */

.btn-outline-purple {
  color: #6f42c1;
  border-color: #6f42c1;
}

.btn-outline-purple:hover,
.btn-outline-purple:focus {
  background-color: #6f42c1;
  color: #fff;
}

.btn-outline-purple:active {
  background-color: #5a32a3;
  border-color: #5a32a3;
  color: #fff;
}

/* ==================================================
   MOBILE – LOGIN CHOICE / FORM
================================================== */

.mobile-screen {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.mobile-actions,
.mobile-form {
  width: 100%;
  transform: translateY(-48px);
}

.mobile-form {
  max-width: 420px;
  margin: 0 auto;
  background: rgba(255,255,255,.92);
  padding: 24px;
  border-radius: 14px;
}

/* ==================================================
   RESPONSIVO – MOBILE
================================================== */

@media (max-width: 991px) {

  .auth-header {
    display: none;
  }

  .auth-body {
    background-image: none;
    background-color: #f8f9fa;
  }

   .auth-container {
     display: flex;
     align-items: center;
     justify-content: center;
     min-height: calc(100vh - 64px);
     padding: 64px;
   }

  .auth-visual {
    display: none;
  }

  .auth-card-wrapper {
    padding: 0;
  }

  .auth-card {
    max-width: 380px;
    padding: 24px;
  }
}

/* ==================================================
   LOGIN – INPUTS COM ÍCONE
================================================== */

.auth-input .input-group-text {
  background-color: #fff;
  border-right: none;
  color: #6c757d;
}

.auth-input .form-control {
  border-left: none;
}

.auth-input .btn-toggle-password {
  background-color: #fff;
  border-left: none;
  color: #6c757d;
  cursor: pointer;
}

.auth-input .form-control:focus {
  box-shadow: none;
  border-color: #ced4da;
}

/* ==================================================
   LOGIN DESKTOP – CENTRALIZAÇÃO REAL
================================================== */

.auth-container-centered {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
}

.auth-container-centered .auth-card {
  max-width: 560px;
}

.auth-container-centered .auth-card-wrapper {
  width: 100%;
  max-width: 560px;  
  padding: 32px;
}

.auth-container-centered .auth-card {
  width: 100%;
  max-width: none;   
}

/* ==================================================
   MOBILE – LOGIN CHOICE / FORM (ANTI WHITE FLASH)
================================================== */

.mobile-screen {
  position: relative;
  min-height: 100vh;

  background-color: #0f172a;

  background-image: url("../images/banners/bg-cad-log.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: flex-end;
  padding: 24px;
}

/* PÁGINAS ESPECÍFICAS */
.login-choice {
  background-image: url("../images/banners/bg-cad-log.webp");
}

.login-form {
  background-image: url("../images/banners/bg-log-pass.webp");
}

.register-form {
  background-image: url("../images/banners/bg-cad-form.webp");
}

/* =========================================
   FIX REGISTER MOBILE OVERLAP
   ========================================= */

@media (max-width: 991px) {

  .mobile-screen.register-form .mobile-form {
    transform: none;
  }

}

/* ==================================================
   MOBILE – REGISTER / CENTERED CONTAINER FIX
   Overrides the 64px padding from .auth-container
   that squishes the card on small screens
================================================== */

@media (max-width: 991px) {
  .auth-container-centered {
    padding: 24px 16px;
    align-items: flex-start;
  }

  .auth-container-centered .auth-card-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .auth-container-centered .auth-card {
    max-width: 100%;
  }
}

/* ==================================================
   LOGIN SPLIT CARD (desktop)
================================================== */

.auth-card-wrapper-split,
.auth-container-centered .auth-card-wrapper-split {
  max-width: 960px;
  width: 90%;
  padding: 32px;
}

.auth-card.auth-card-split {
  display: flex;
  padding: 0;
  overflow: hidden;
  max-width: none;
}

.auth-card-left {
  flex: 0 0 40%;
  background: linear-gradient(150deg, #0a3472 0%, #1251b5 55%, #1976d2 100%);
  border-radius: 14px 0 0 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 44px;
  color: #fff;
}

.auth-welcome-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.auth-welcome-sub {
  font-size: 0.875rem;
  opacity: 0.85;
  margin-bottom: 32px;
  line-height: 1.6;
}

.auth-welcome-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-welcome-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.92;
}

.auth-welcome-features li i {
  font-size: 1rem;
  opacity: 0.9;
}

.auth-card-right {
  flex: 1;
  padding: 40px 44px;
  overflow-y: auto;
}

.auth-acesso-via {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: #6c757d;
  flex-wrap: wrap;
}

.btn-social-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-social-circle:hover {
  opacity: 0.85;
  transform: scale(1.08);
}

.btn-social-google {
  border: 1.5px solid #dc3545;
  color: #dc3545;
}

.btn-social-google:hover {
  background-color: #dc3545;
  color: #fff;
}

.btn-social-github {
  border: 1.5px solid #212529;
  color: #212529;
}

.btn-social-github:hover {
  background-color: #212529;
  color: #fff;
}

@media (max-width: 991px) {

  .auth-card-wrapper-split {
    max-width: 560px;
  }

  .auth-card.auth-card-split {
    display: block;
    padding: 24px;
  }

  .auth-card-left {
    display: none;
  }

  .auth-card-right {
    padding: 0;
  }

}

/* ==================================================
   MOBILE REGISTER FORM
   These styles must live in auth.css because
   solicitacoes.css is NOT loaded by the auth layout.
================================================== */

.mobile-screen.register-form {
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 32px;
  overflow-y: auto;
  min-height: 100vh;
}

.mobile-register-wrapper {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.mobile-register-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  padding: 28px 24px 24px;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

/* ==================================================
   PASSWORD REQUIREMENTS CHECKLIST
================================================== */

.password-requirements {
  display: none;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
}

.password-requirements.visible {
  display: block;
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.requirements-list li {
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.requirements-list li i {
  font-size: 0.8rem;
  flex-shrink: 0;
}

.requirements-list li.req-met {
  color: #198754;
}

.requirements-list li.req-unmet {
  color: #dc3545;
}

/* Confirm password match status */
.confirm-status {
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: -8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
}

.confirm-status.match {
  color: #198754;
}

.confirm-status.mismatch {
  color: #dc3545;
}

/* Eye toggle button in input-group */
.btn-eye {
  background-color: #fff;
  border-color: #ced4da;
  color: #6c757d;
  padding: 0 12px;
}

.btn-eye:hover,
.btn-eye:focus {
  background-color: #f8f9fa;
  color: #1e293b;
  border-color: #ced4da;
  box-shadow: none;
}
