:root {
  --diocese-azul: #1a2d4c;
  --diocese-azul-escuro: #102040;
  --diocese-dourado: #c8aa4d;
  --diocese-branco: #fff;
  --diocese-cinza: #f7f8fa;
  --diocese-sombra: 0 2px 32px rgba(34, 53, 101, 0.10);
  --diocese-radius: 1.6rem;
}

/* Fundo gradiente institucional */
body, html {
  min-height: 100vh;
  background: linear-gradient(115deg, var(--diocese-azul) 75%, var(--diocese-dourado) 100%);
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}

/* Painel institucional à esquerda */
.left-panel {
  background: linear-gradient(110deg, var(--diocese-azul-escuro) 87%, var(--diocese-dourado) 100%);
  color: var(--diocese-branco);
  min-height: 100vh;
  text-align: center;
  padding: 0 3vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.left-panel img.logo-img {
  max-width: 120px;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(34,53,101,0.09);
  margin-bottom: 1.2rem;
}

.left-panel h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--diocese-dourado);
  letter-spacing: 2px;
  margin-bottom: 0.2em;
  text-shadow: 1px 1px 6px rgba(16,32,64,0.10);
}

.left-panel p {
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--diocese-branco);
  margin-bottom: 1.5rem;
}

/* Painel de login à direita */
.login-panel {
  background: var(--diocese-branco);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--diocese-sombra);
}

.login-form {
  background: var(--diocese-branco);
  border-radius: var(--diocese-radius);
  box-shadow: 0 2px 32px rgba(34,53,101,0.10);
  max-width: 370px;
  width: 100%;
  padding: 2.6rem 2rem 2rem 2rem;
  margin: 0 auto;
}

.login-form h2 {
  color: var(--diocese-azul);
  font-weight: 600;
  letter-spacing: 1.2px;
}

.login-form label {
  color: var(--diocese-azul);
  font-weight: 500;
}

.login-logo {
  max-height: 60px;
  border-radius: 14px;
  margin-bottom: 1.3rem;
}

.form-control:focus {
  border-color: var(--diocese-dourado);
  box-shadow: 0 0 0 0.14rem rgba(200, 170, 77, .12);
}

.esqueci-senha-link {
    color: #c8aa4d;
    font-size: 0.97rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s;
}
.esqueci-senha-link:hover {
    color: #1a2d4c;
    text-decoration: underline;
}


.input-group-text {
  background: var(--diocese-cinza);
  border: none;
  color: var(--diocese-azul);
  cursor: pointer;
}

.btn-diocese {
  background: var(--diocese-azul);
  color: var(--diocese-branco);
  font-weight: 600;
  border-radius: 2rem;
  border: none;
  box-shadow: 0 2px 12px rgba(34,53,101,0.07);
  padding: 0.7rem 0;
  letter-spacing: 1.2px;
  transition: background .19s, color .19s;
}
.btn-diocese:hover {
  background: var(--diocese-dourado);
  color: var(--diocese-azul-escuro);
}

.alert {
  border-radius: 0.8rem;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.form-check-label {
  color: var(--diocese-azul-escuro);
  font-weight: 500;
}

.login-form a {
  color: var(--diocese-dourado);
  text-decoration: none;
  transition: color .16s;
}
.login-form a:hover {
  color: var(--diocese-azul-escuro);
  text-decoration: underline;
}

/* Responsivo */
@media (max-width: 991px) {
  .left-panel { display: none !important; }
  .login-panel { min-height: 100vh; }
  .login-form { box-shadow: none; padding: 2.2rem 1rem; }
}

@media (max-width: 480px) {
  .login-form { padding: 1.2rem 0.3rem; }
}
/* ===== Modal glassmorphism ===== */
.loading-glass {
  background: rgba(10, 12, 16, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  box-shadow: none;
}

/* Container do modal em fullscreen fica sem bordas/padding extras */
#loadingModal .modal-body {
  min-height: 100vh;
}

/* ===== Spinner minimalista (estilo startups) ===== */
.startup-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.35);
  border-top-color: rgba(255,255,255,0.95);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Botão principal ===== */
.btn-diocese {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  border: 0;
  background: linear-gradient(180deg, #1f4aa8, #14337a);
  color: #fff;
  transition: transform .06s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 8px 20px rgba(31,74,168,.25);
}
.btn-diocese:hover { transform: translateY(-1px); }
.btn-diocese:active { transform: translateY(0); opacity:.9; }
.btn-diocese.disabled, .btn-diocese:disabled { opacity:.6; cursor: not-allowed; }

/* ===== Input / Grupo de senha ===== */
.btn-eye {
  background: #f6f7fb;
  border: 1px solid #dee3ee;
}
.form-control:focus {
  border-color: #1f4aa8;
  box-shadow: 0 0 0 .2rem rgba(31,74,168,.15);
}

/* ===== Links ===== */
.esqueci-senha-link { text-decoration: none; }
.esqueci-senha-link:hover { text-decoration: underline; }

/* ===== Painéis principais (ajuste caso já exista) ===== */
.left-panel {
  background: linear-gradient(180deg,#0e1d49,#0a1431);
  color: #fff;
}
.text-diocese { letter-spacing: 2px; }
.text-diocese-2 { opacity: .85; }
.login-panel { background:#fff; }
.login-form {
  width: 100%;
  max-width: 380px;
}

/* ===== Modal glassmorphism (fullscreen) ===== */
.loading-glass {
  background: rgba(10, 12, 16, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  box-shadow: none;
}
#loadingModal .modal-body { min-height: 100vh; }

/* ===== Spinner minimalista ===== */
.startup-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.35);
  border-top-color: rgba(255,255,255,0.95);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Botão principal ===== */
.btn-diocese {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  border: 0;
  background: linear-gradient(180deg, #1f4aa8, #14337a);
  color: #fff;
  transition: transform .06s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 8px 20px rgba(31,74,168,.25);
}
.btn-diocese:hover { transform: translateY(-1px); }
.btn-diocese:active { transform: translateY(0); opacity:.9; }
.btn-diocese.disabled, .btn-diocese:disabled { opacity:.6; cursor: not-allowed; }

/* Links */
.esqueci-senha-link { text-decoration: none; }
.esqueci-senha-link:hover { text-decoration: underline; }

/* Container do card */
.login-form { width: 100%; max-width: 380px; }


/* Footer fino */
.devopsans-footer {
  position: fixed; bottom: 8px; left: 0; right: 0;
  text-align: center; font-size: .85rem; color: #6b7280;
}
.devopsans-link { color: inherit; text-decoration: none; }
.devopsans-link:hover { text-decoration: underline; }

/* Barra de progresso (startup) */
.loader-track{
  width: 220px;
  height: 4px;
  background: rgba(255,255,255,.25);
  border-radius: 999px;
  overflow: hidden;
  backdrop-filter: saturate(140%);
}
.loader-fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#78a5ff,#2e5bd4);
  border-radius: 999px;
  /* brilho suave na ponta */
  box-shadow: 0 0 12px rgba(120,165,255,.6);
  transition: none; /* animamos via JS */
}


/* Footer institucional DevOpsans */
.devopsans-footer {
    width: 100vw;
    text-align: center;
    position: fixed;
    left: 0;
    bottom: 0;
    padding: 1.2rem 0 1rem 0;
    background: #f6f7f9;  /* Cor sólida, suave e institucional */
    color: #888;
    font-size: 1rem;
    font-family: 'Segoe UI', Arial, sans-serif;
    letter-spacing: 0.01em;
    user-select: none;
    z-index: 999;
    border-top: 1px solid #e0e3ea;
    box-shadow: 0 2px 12px rgba(34,53,101,0.07);
}

.devopsans-link {
    color: #c8aa4d;
    font-weight: bold;
    text-decoration: none;
    margin-left: 0.18em;
    transition: color 0.16s;
    letter-spacing: 0.02em;
    vertical-align: middle;
}
.devopsans-link:hover,
.devopsans-link:focus {
    color: #1a2d4c;
    text-decoration: underline;
}
.devopsans-link img {
    height: 1.1em;
    vertical-align: -2px;
    margin-right: 3px;
    opacity: 0.96;
    transition: opacity 0.13s;
}
.devopsans-link:hover img { opacity: 1; }

@media (max-width: 991px) {
    .devopsans-footer {
        position: static;
        font-size: 1.05rem;
        padding: 1rem 0 0.7rem 0;
    }
}
/* ===== Fix modal visibilidade/contraste ===== */
/* backdrop mais escuro */
.modal-backdrop.show{
  background:#0b1224 !important;
  opacity:.55 !important;
}

/* força o vidro do conteúdo a não ficar branco */
.modal-content.loading-glass{
  background: rgba(12,16,24,.35) !important; /* escuro translúcido */
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* texto claro dentro do modal */
#loadingModal .modal-body{ color:#e9eefb; }
#loadingModal .text-muted{ color:#c9d3ea !important; }

/* spinner com contraste em fundo escuro */
#loadingModal .startup-spinner{
  border:4px solid rgba(255,255,255,.25) !important;
  border-top-color:#fff !important;
}

/* barra de progresso visível no fundo escuro */
#loadingModal .loader-track{ background: rgba(255,255,255,.25) !important; }
#loadingModal .loader-fill{
  background: linear-gradient(90deg,#9fc0ff,#4a74e6) !important;
  box-shadow: 0 0 12px rgba(159,192,255,.6) !important;
}


/* ---- Força tema escuro translúcido no modal ---- */
.modal-darkglass{
  /* variável nativa do BS para fundo do .modal-content */
  --bs-modal-bg: rgba(12,16,24,.35);
  --bs-modal-border-color: transparent;
  --bs-modal-color: #e9eefb;
  --bs-modal-padding: 0; /* garante fullscreen “limpo” */
}

/* backdrop mais escuro e visível */
.modal-backdrop.show{
  background: #0b1224 !important;
  opacity: .55 !important;
}

/* texto/legendas dentro do modal */
#loadingModal .text-muted{ color:#c9d3ea !important; }

/* spinner e barra com contraste em fundo escuro */
#loadingModal .startup-spinner{
  border:4px solid rgba(255,255,255,.25) !important;
  border-top-color:#fff !important;
}
#loadingModal .loader-track{ background: rgba(255,255,255,.25) !important; }
#loadingModal .loader-fill{
  background: linear-gradient(90deg,#9fc0ff,#4a74e6) !important;
  box-shadow: 0 0 12px rgba(159,192,255,.6) !important;
}
