:root {
   --azul-escuro: #081a3b;
   --azul-medio: #0f2d63;
   --azul-card: rgba(8, 26, 59, 0.78);
   --dourado: #d9a52f;
   --dourado-claro: #f1cf75;
   --branco: #f8f9fb;
}

* {
   box-sizing: border-box;
}

body.login-page {
   min-height: 100vh;
   position: relative;
   margin: 0;
   background-color: var(--azul-escuro);
   background-size: cover;
   background-repeat: no-repeat;
   background-position: center center;
   color: var(--branco);
   font-family: Nunito, "Open Sans", sans-serif;
}

body.login-page.has-bg-image::before {
   content: "";
   position: fixed;
   inset: 0;
   background: radial-gradient(circle at 25% 15%, rgba(217, 165, 47, 0.25), rgba(8, 26, 59, 0) 45%);
   pointer-events: none;
   z-index: 0;
}

main {
   position: relative;
   z-index: 1;
}

.login-page .header {
   z-index: 997;
   min-height: 68px;
   box-shadow: 0 8px 26px rgba(0, 0, 0, 0.2);
   background: linear-gradient(90deg, rgba(7, 20, 46, 0.95), rgba(12, 35, 80, 0.88));
   border-bottom: 1px solid rgba(217, 165, 47, 0.35);
   backdrop-filter: blur(6px);
   padding: 10px 20px;
   display: flex;
   align-items: center;
   gap: 16px;
}

.login-page .header-brand {
   display: flex;
   align-items: center;
   gap: 8px;
   margin-right: auto;
   padding: 4px 6px;
   border-radius: 12px;
   text-decoration: none;
}

.login-page .header-brand img {
   filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.login-page .header-brand-text {
   color: #fff;
   font-weight: 700;
   font-size: 1.1rem;
   letter-spacing: 0.04em;
}

.login-page .top-nav {
   display: flex;
   align-items: center;
}

.login-page .top-nav .nav.nav-pills {
   display: flex;
   align-items: center;
   gap: 8px;
   margin-bottom: 0;
   padding-left: 0;
   list-style: none;
}

.login-page .top-nav .nav-item {
   height: auto !important;
   padding: 0 !important;
}

.login-page .top-link {
   display: block;
   color: #f5f7fd !important;
   text-decoration: none;
   white-space: nowrap;
   border-radius: 999px;
   transition: all 0.25s ease;
   font-weight: 600;
   font-size: 0.93rem;
   padding: 8px 14px !important;
   border: 1px solid transparent;
   background: rgba(255, 255, 255, 0.03);
}

.login-page .top-link i {
   margin-right: 6px;
   color: var(--dourado-claro);
}

.login-page .top-link:hover {
   color: #fff !important;
   border-color: rgba(241, 207, 117, 0.45);
   background: rgba(217, 165, 47, 0.16);
   transform: translateY(-1px);
}

.login-page .top-link.current {
   border-color: rgba(241, 207, 117, 0.62);
   background: linear-gradient(120deg, rgba(217, 165, 47, 0.2), rgba(255, 255, 255, 0.08));
   box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.login-page .section.register {
   min-height: calc(100vh - 80px);
}

.login-page .form-login {
   width: 100%;
   border: 1px solid rgba(241, 207, 117, 0.45);
   box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
   border-radius: 24px;
   overflow: hidden;
   background: linear-gradient(150deg, rgba(8, 26, 59, 0.86), rgba(15, 45, 99, 0.7));
   backdrop-filter: blur(6px);
}

.login-page .form-login .card-body {
   padding: 30px 26px;
}

.login-page .brand-subtitle {
   color: rgba(241, 207, 117, 0.96);
   font-size: 0.92rem;
   text-align: center;
   margin-bottom: 20px;
   letter-spacing: 0.2px;
}

.login-page .login-navbar-logo {
   display: block;
   height: 36px;
   width: auto;
   max-width: 160px;
   object-fit: contain;
}

.login-page .login-sighosp-logo {
   display: block;
   width: min(300px, 85vw);
   height: auto;
   max-height: 72px;
   object-fit: contain;
}

.login-page .form-label {
   color: #f4f6ff;
   font-weight: 600;
   margin-bottom: 0.35rem;
}

.login-page .border-input,
.login-page .form-select {
   border-radius: 999px;
   border: 1px solid rgba(255, 255, 255, 0.4);
   background-color: rgba(255, 255, 255, 0.08);
   color: #fff;
   min-height: 44px;
   padding-left: 16px;
   transition: all 0.2s ease;
}

.login-page .border-input::placeholder {
   color: rgba(255, 255, 255, 0.7);
}

.login-page .form-select option {
   color: #111;
}

.login-page .border-input:focus,
.login-page .form-select:focus {
   background-color: rgba(255, 255, 255, 0.14);
   border-color: var(--dourado-claro);
   box-shadow: 0 0 0 0.2rem rgba(217, 165, 47, 0.25);
   color: #fff;
}

.login-page .bt-login {
   box-shadow: 0 8px 24px rgba(217, 165, 47, 0.35);
   background: linear-gradient(90deg, #be8720, #d9a52f);
   border: none;
   border-radius: 999px;
   color: #fff;
   font-weight: 700;
   letter-spacing: 0.3px;
   min-height: 45px;
   transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-page .bt-login:hover {
   transform: translateY(-1px);
   box-shadow: 0 12px 28px rgba(217, 165, 47, 0.45);
   background: linear-gradient(90deg, #cc9121, #e8b94d);
   color: #fff;
}

.login-page .link-recuperar {
   color: #f6d98f;
   text-decoration: none;
   font-weight: 600;
}

.login-page .link-recuperar:hover {
   color: #ffecb8;
   text-decoration: underline;
}

.login-page .copyright {
   color: rgba(255, 255, 255, 0.85);
   font-size: 0.85rem;
}

.login-page .alert-login {
   border-radius: 12px;
   background: rgba(220, 53, 69, 0.15);
   border: 1px solid rgba(220, 53, 69, 0.4);
   color: #ffd6db;
   padding: 0.75rem 1rem;
   margin-bottom: 1rem;
   font-size: 0.9rem;
}

@media (max-width: 991px) {
   .login-page .header {
      padding: 10px 12px;
      gap: 8px;
   }

   .login-page .top-nav {
      display: none;
   }
}
