/* ======================================
   AUTH LAYOUT — RADLAUDO (Nucleus Style)
====================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  height: 100vh;
  background: #f1f5f9;
}

.auth-container {
  display: flex;
  height: 100vh;
}

/* ===========================
   LADO ESQUERDO
=========================== */

.auth-left {
  flex: 1;

  background:
    linear-gradient(
      rgba(134, 135, 137, 0.55),
      rgba(52, 112, 231, 0.55)
    ),
    url('assets/images/login-bg.png');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: #ffffff;
  padding: 60px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand h2 {
  font-weight: 600;
  font-size: 24px;
}

.auth-quote h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.auth-quote p {
  opacity: 0.85;
}


/* ===========================
   BRAND (LOGO + NOME)
=========================== */

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.3px;
}



/* ===========================
   LADO DIREITO
=========================== */

.auth-right {
  flex: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 380px;
}

.auth-card h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111827;
}

.subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 30px;
}

/* ===========================
   FORM
=========================== */

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #374151;
}

.form-group input {
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-extra {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  margin-top: -16px;
}

.form-extra a {
  font-size: 13px;
  text-decoration: none;
  color: #3b82f6;
  font-weight: 500;
}

.form-extra a:hover {
  text-decoration: underline;
}


/* ===========================
   CHECKBOX
=========================== */


.checkbox-group {
  margin-bottom: 18px;
}



.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-label input {
  margin: 0;
}

.checkbox-label a {
    color: #0d3b66;
    font-weight: 500;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.checkbox-label input:focus {
    outline: none;
    box-shadow: none;
}





/* ===========================
   BUTTON
=========================== */

.btn-primary {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79,70,229,0.3);
}

/* ===========================
   RESPONSIVO
=========================== */

@media (max-width: 992px) {

  .auth-left {
    display: none;
  }

  .auth-right {
    flex: 1;
  }

}



/* ===========================
   BUTTON LOADING STATE
=========================== */

.btn-primary.loading {
  pointer-events: none;
  opacity: 0.9;
}

.btn-primary .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}

.btn-primary.loading .spinner {
  display: inline-block;
}

.btn-primary.loading .btn-text {
  margin-left: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}




/* =========================================
   🔥 GLOBAL BUTTON LOADING SYSTEM
========================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

.btn-primary:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* Spinner */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  display: none;
}

.btn-primary.loading .btn-spinner {
  display: inline-block;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}



/* =========================================
   EMAIL DISPLAY (ATIVAR / REDEFINIR)
========================================= */

.email-display {
  margin: 24px 0 18px 0;
  padding: 14px 16px;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.email-label {
  color: #64748b;
  font-weight: 500;
}

.email-value {
  font-weight: 600;
  color: #111827;
  word-break: break-all;
}


/* ===========================
   LOGIN ERROR STATE
=========================== */

.input-error {
  margin-top: 6px;
  font-size: 13px;
  color: #dc2626;
  min-height: 16px;
}

.form-group input.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
}



/* ===========================
   LOGO MOBILE
=========================== */

.mobile-logo {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  opacity: 75%;
}

.mobile-logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
  
}

.mobile-brand-name {
  font-size: 20px;
  font-weight: 600;
  color: #255bcd;
  letter-spacing: -0.3px;
}

/* Mostrar apenas em mobile */
@media (max-width: 992px) {
  .mobile-logo {
    display: flex;
  }
}