/* =====================
   RESET E BASE
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  color: #333;
}

.login-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: radial-gradient(circle at center, #012e17, #000a04);
  overflow: hidden;
}

/* mantém o card acima */
.login-container {
  position: fixed;          /* fica sempre visível e fixa na tela */
  top: 50%;                 /* centraliza verticalmente */
  left: 50%;                /* centraliza horizontalmente */
  transform: translate(-50%, -50%); /* corrige o ponto de ancoragem */
  z-index: 9999;            /* garante que fique sobre tudo */
  width: 100%;
  max-width: 420px;
  padding: 30px;
  border-radius: 10px;
}

.login-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 2rem 2.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* =====================
   CABEÇALHO
===================== */
.login-header {
  text-align: center;
  margin-bottom: 1.8rem;
}
.login-header h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #111827;
}
.login-header p {
  font-size: 0.95rem;
  color: #6b7280;
  margin-top: 4px;
}

/* =====================
   FORMULÁRIO
===================== */
.form-group {
  margin-bottom: 1.3rem;
}
.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  display: block;
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.form-group input:focus {
  border-color: #3b82f6;
  outline: none;
}

/* campo senha + botão olho */
.password-wrapper {
  position: relative;
}
.password-wrapper button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}
.password-wrapper button:hover {
  color: #3b82f6;
}

/* =====================
   OPÇÕES
===================== */
.options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.options-row a {
  color: #3b82f6;
  text-decoration: none;
}
.options-row a:hover {
  text-decoration: underline;
}

/* =====================
   BOTÕES
===================== */
.btn-login {
  width: 100%;
  background-color: #2563eb;
  color: #fff;
  font-size: 1rem;
  padding: 0.85rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-login:hover {
  background-color: #1d4ed8;
}

/* divisor social */
.divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}
.divider span {
  background: #fff;
  padding: 0 10px;
  color: #9ca3af;
  font-size: 0.85rem;
}
.divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #e5e7eb;
  transform: translateY(-50%);
}

/* social login */
.social-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 0.9rem;
  padding: 0.6rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn-social:hover {
  background: #f3f4f6;
  transform: scale(1.02);
}
.facebook i { color: #1877f2; }
.google i { color: #db4437; }

/* criar conta */
.signup-link {
  text-align: center;
  margin-top: 1.3rem;
  font-size: 0.9rem;
}
.signup-link a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}
.signup-link a:hover {
  text-decoration: underline;
}

/* =====================
   RESPONSIVIDADE
===================== */
@media (max-width: 480px) {
  .login-card {
    padding: 1.5rem;
    border-radius: 10px;
  }
  .login-header h2 {
    font-size: 1.4rem;
  }
  .btn-social {
    font-size: 0.85rem;
    gap: 4px;
    padding: 0.5rem;
  }
  .btn-login {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
  .form-group input {
    font-size: 0.95rem;
  }
  .login-header p {
    font-size: 0.9rem;
  }
}

/* Cadastro */

.ref-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* joga o conteúdo para a direita */
    min-height: 100vh;
    padding: 20px;

    /* 🔹 Gradiente + imagem */
    background:
        linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.75)),
        url("/assets/images/bg-fixed.png") no-repeat center center fixed;
    background-size: cover; /* 🔹 garante que preenche toda a área */
    background-position: center center; /* garante centralização perfeita */
    background-attachment: fixed; /* efeito de fundo fixo */
    background-color: #000; /* cor de fallback */
    overflow: hidden;
}

/* 🔹 Imagem fixa de fundo (ex: lateral esquerda) */
.ref-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* metade da tela */
    height: 100%;
    background-size: cover;
    opacity: 0.12; /* deixa suave, tipo marca d’água */
    z-index: 0;
    pointer-events: none; /* evita interferir no clique */
}

.ref-container {
    position: fixed;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 100%;
    max-width: 520px;
    margin-right: 20px; /* distância da margem direita */
    height: 90vh; /* altura máxima visível */
    padding: 0;
    display: flex;
    flex-direction: column;
   
}


/* mobile */
@media (max-width: 768px) {
    .ref-section { 
        justify-content: center; 
        padding: 10px; 
    }

    .ref-container {
        left: 50%;               /* centraliza no mobile */
        transform: translate(-50%, -50%);
        margin-right: 0;
        max-width: 90%;
        height: 90vh; /* altura máxima visível */
    }
}


.ref-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* área de rolagem */
.ref-card .card-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 2.5rem;
    scroll-behavior: smooth;
}

/* scrollbar moderna */
.ref-card .card-body::-webkit-scrollbar {
    width: 8px;
}
.ref-card .card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.ref-card .card-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0b9444, #026232);
    border-radius: 10px;
}
.ref-card .card-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #026232, #014a24);
}

/* botão no final (não fixo) */
.ref-card .btn-login {
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #0b9444, #026232);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}
.ref-card .btn-login:hover {
    background: linear-gradient(135deg, #026232, #0b9444);
}

/* ===============================
   🔹 Select estilizado moderno
   =============================== */
.country-options {
  display: flex;
  justify-content: center; /* centraliza horizontalmente */
  align-items: center;
  gap: 20px; /* espaço entre os botões */
  flex-wrap: nowrap; /* impede quebra de linha */
}

.country-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid #b1b1b1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  user-select: none;
  min-width: 130px;
  text-align: center;
}

.country-option:hover {
  background: rgba(11, 148, 68, 0.2);
  transform: scale(1.05);
}

.country-option input[type="radio"] {
  display: none; /* esconde o input nativo */
}

.country-option input[type="radio"]:checked + span {
  color: #fff;
  font-weight: 600;
}

.country-option input[type="radio"]:checked {
  background: linear-gradient(135deg, #0b9444, #026232);
}

.country-option:has(input[type="radio"]:checked) {
  background: linear-gradient(135deg, #0b9444, #026232);
  border-color: #026232;
  box-shadow: 0 0 10px rgba(11, 148, 68, 0.4);
}

/* Responsivo: no celular empilha */
@media (max-width: 576px) {
  .country-options {
    flex-direction: column;
    gap: 12px;
  }
}




.btn-outline-success {
  color: #00cd9a;
  border-color: #00cd9a; }
  .btn-outline-success:hover {
    color: #fff;
    background-color: #00cd9a;
    border-color: #00cd9a; }
  .btn-outline-success:focus, .btn-outline-success.focus {
    -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 204, 205, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(0, 204, 205, 0.5); }
  .btn-outline-success.disabled, .btn-outline-success:disabled {
    color: #00cd9a;
    background-color: transparent; }
  .btn-outline-success:not(:disabled):not(.disabled):active, .btn-outline-success:not(:disabled):not(.disabled).active,
  .show > .btn-outline-success.dropdown-toggle {
    color: #fff;
    background-color: #00cd9a;
    border-color: #00cd9a; }
    .btn-outline-success:not(:disabled):not(.disabled):active:focus, .btn-outline-success:not(:disabled):not(.disabled).active:focus,
    .show > .btn-outline-success.dropdown-toggle:focus {
      -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 204, 205, 0.5);
      box-shadow: 0 0 0 0.2rem rgba(0, 204, 205, 0.5); }


.btn-outline-info {
  color: #198ae3;
  border-color: #198ae3; }
  .btn-outline-info:hover {
    color: #fff;
    background-color: #198ae3;
    border-color: #198ae3; }
  .btn-outline-info:focus, .btn-outline-info.focus {
    -webkit-box-shadow: 0 0 0 0.2rem rgba(25, 138, 227, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(25, 138, 227, 0.5); }
  .btn-outline-info.disabled, .btn-outline-info:disabled {
    color: #198ae3;
    background-color: transparent; }
  .btn-outline-info:not(:disabled):not(.disabled):active, .btn-outline-info:not(:disabled):not(.disabled).active,
  .show > .btn-outline-info.dropdown-toggle {
    color: #fff;
    background-color: #198ae3;
    border-color: #198ae3; }
    .btn-outline-info:not(:disabled):not(.disabled):active:focus, .btn-outline-info:not(:disabled):not(.disabled).active:focus,
    .show > .btn-outline-info.dropdown-toggle:focus {
      -webkit-box-shadow: 0 0 0 0.2rem rgba(25, 138, 227, 0.5);
      box-shadow: 0 0 0 0.2rem rgba(25, 138, 227, 0.5); }

.btn, .fc button, .ajax-upload-dragdrop .ajax-file-upload {
  display: inline-block;
  font-weight: 400;
  color: #343a40;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 3px 18px;
  font-size: 0.875rem;
  line-height: 1.71;
  border-radius: 0.1875rem;
  -webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out; }
  @media (prefers-reduced-motion: reduce) {
    .btn, .fc button, .ajax-upload-dragdrop .ajax-file-upload {
      -webkit-transition: none;
      transition: none; } }
  .btn:hover, .fc button:hover, .ajax-upload-dragdrop .ajax-file-upload:hover {
    color: #343a40;
    text-decoration: none; }
  .btn:focus, .fc button:focus, .ajax-upload-dragdrop .ajax-file-upload:focus, .btn.focus, .fc button.focus, .ajax-upload-dragdrop .focus.ajax-file-upload {
    outline: 0;
    -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
  .btn.disabled, .fc button.disabled, .ajax-upload-dragdrop .disabled.ajax-file-upload, .btn:disabled, .fc button:disabled, .ajax-upload-dragdrop .ajax-file-upload:disabled {
    opacity: 0.65; }

a.btn.disabled, .ajax-upload-dragdrop a.disabled.ajax-file-upload,
fieldset:disabled a.btn,
fieldset:disabled .ajax-upload-dragdrop a.ajax-file-upload,
.ajax-upload-dragdrop fieldset:disabled a.ajax-file-upload {
  pointer-events: none; }      

.text-center {
  display: flex;
  justify-content: center; /* centraliza horizontalmente */
  align-items: center;      /* centraliza verticalmente se tiver altura */
  margin-top: 20px;
}  