/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #333;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    height: auto;
    font-size: 14px;
    position: relative;
}

/* Mesh Gradient Background Animado */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(at 27% 37%, hsla(215, 98%, 61%, 0.15) 0px, transparent 50%),
        radial-gradient(at 97% 21%, hsla(125, 98%, 72%, 0.15) 0px, transparent 50%),
        radial-gradient(at 52% 99%, hsla(354, 98%, 61%, 0.15) 0px, transparent 50%),
        radial-gradient(at 10% 29%, hsla(256, 96%, 67%, 0.15) 0px, transparent 50%),
        radial-gradient(at 97% 96%, hsla(38, 60%, 74%, 0.15) 0px, transparent 50%),
        radial-gradient(at 33% 50%, hsla(222, 67%, 73%, 0.15) 0px, transparent 50%),
        radial-gradient(at 79% 53%, hsla(343, 68%, 79%, 0.15) 0px, transparent 50%);
    z-index: -1;
    animation: meshMove 20s ease infinite;
}

@keyframes meshMove {
    0%, 100% {
        background-position: 0% 0%, 100% 0%, 50% 100%, 0% 50%, 100% 100%, 30% 50%, 70% 50%;
    }
    50% {
        background-position: 100% 100%, 0% 100%, 50% 0%, 100% 50%, 0% 0%, 70% 50%, 30% 50%;
    }
}

/* Container adjustments */
.container-fluid {
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.row {
    margin: 0;
    max-width: 100%;
}

.col-md-6 {
    padding: 0;
}

/* Left Panel Styles - COM GRADIENTE MESH E GLASSMORPHISM */
.left-panel {
    background: 
        linear-gradient(135deg, 
            rgba(17, 183, 128, 0.95) 0%, 
            rgba(37, 193, 143, 0.90) 25%,
            rgba(62, 196, 151, 0.85) 50%,
            rgba(17, 183, 128, 0.90) 75%,
            rgba(13, 150, 104, 0.95) 100%
        );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    box-shadow: 
        inset 0 0 100px rgba(255, 255, 255, 0.1),
        0 0 50px rgba(17, 183, 128, 0.2);
}

/* Efeito de bolhas animadas */
.left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.07) 0%, transparent 50%);
    animation: floatBubbles 25s ease-in-out infinite;
}

@keyframes floatBubbles {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Efeito de brilho suave */
.left-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.05) 75%,
        transparent 100%
    );
    background-size: 200% 200%;
    animation: shimmer 8s linear infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% -200%;
    }
    100% {
        background-position: 200% 200%;
    }
}

.content-wrapper {
    width: 100%;
    padding: 4rem 3rem;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.brand-section {
    text-align: left;
}

.brand-name {
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.brand-name i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1));
}

.brand-logo {
    height: 6rem;
    width: auto;
    margin-right: 1rem;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.15));
}

.system-inline {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
    margin-left: 0.3rem;
}

.system-name {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 2rem;
    margin-left: 7rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 500px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 500px;
    margin-bottom: 3rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

/* Stats Boxes - COM GLASSMORPHISM */
.stats-section {
    margin-top: 3rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 0 25px rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Right Panel Styles - COM GLASSMORPHISM NO LOGIN CARD */
.right-panel {
    background-color: #ffffff;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Card mais largo com glassmorphism */
.login-form-container {
    max-width: 480px;
    width: 100%;
    text-align: left;
}

/* Mobile header */
.login-header {
    text-align: left;
}

.login-header .brand-name {
    color: #11b780;
    font-size: 1.8rem;
    font-weight: 700;
}

.login-header .brand-name i {
    color: #11b780;
    font-size: 1.6rem;
}

.brand-logo-mobile {
    height: 3.5rem;
    width: auto;
    margin-right: 0.75rem;
}

.login-header .system-name {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    margin-left: 4.25rem;
}

/* Login Card - COM DESTAQUE POR SOMBRA E ELEVAÇÃO */
.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 5px 5px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(17, 183, 128, 0.03), transparent);
    transition: left 0.5s ease;
}

.login-card:hover::before {
    left: 100%;
}

.login-card:hover {
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.18),
        0 15px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-3px);
}

/* Login form titles */
.login-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.login-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Form Styles com glassmorphism sutil */
.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Input Groups - COM FOCO MELHORADO E GLASSMORPHISM */
.input-group {
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.input-group-text {
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(221, 221, 221, 0.5);
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #666;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(221, 221, 221, 0.5);
    border-left: none;
    border-radius: 0 12px 12px 0;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    height: 48px;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(17, 183, 128, 0.1);
    border-color: #3ec497;
    background: rgba(255, 255, 255, 0.9);
}

.input-group:focus-within .input-group-text {
    background: rgba(17, 183, 128, 0.1);
    border-color: #3ec497;
    color: #11b780;
}

/* Linha de foco animada */
.input-focus-line {
    height: 2px;
    background: linear-gradient(90deg, #11b780, #3ec497);
    width: 0;
    margin-top: 2px;
    transition: width 0.4s ease;
    border-radius: 1px;
}

.input-group-focus:focus-within .input-focus-line {
    width: 100%;
}

.input-group-focus:focus-within {
    box-shadow: 0 0 0 4px rgba(17, 183, 128, 0.1);
    border-radius: 12px;
}

.input-group-focus:focus-within .form-control,
.input-group-focus:focus-within .input-group-text {
    border-color: #3ec497;
}

.input-group-focus:focus-within .input-group-text {
    background-color: rgba(17, 183, 128, 0.05);
    color: #11b780;
}

/* Botão mostrar/ocultar senha */
#togglePassword {
    border: 1px solid #ddd;
    border-left: none;
    background-color: #f8f9fa;
    color: #666;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

#togglePassword:hover {
    background-color: #e9ecef;
    color: #11b780;
}

.input-group-focus:focus-within #togglePassword {
    border-color: #3ec497;
    color: #11b780;
}

/* Checkbox melhorado */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    border: 2px solid #ccc;
    margin-top: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input:hover {
    border-color: #11b780;
}

.form-check-input:checked {
    background-color: #11b780;
    border-color: #11b780;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(17, 183, 128, 0.25);
    border-color: #11b780;
}

.form-check-label {
    color: #555;
    font-weight: 400;
    font-size: 0.95rem;
    margin-left: 0.5rem;
    cursor: pointer;
    user-select: none;
}

/* Button com efeito sutil */
.btn-login {
    background: linear-gradient(135deg, #11b780 0%, #3ec497 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    height: 50px;
    box-shadow: 0 4px 15px rgba(17, 183, 128, 0.25);
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0fa372 0%, #35b88d 100%);
    box-shadow: 0 6px 20px rgba(17, 183, 128, 0.35);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(17, 183, 128, 0.3);
}

/* Divider melhorado com glassmorphism */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(238, 238, 238, 0.5), transparent);
    margin: 2rem 0;
    position: relative;
    text-align: center;
}

.divider span {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 1rem;
    color: #999;
    font-size: 0.85rem;
    position: relative;
    top: -0.7rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Links com ícones */
.login-links {
    text-align: left;
}

.link-item {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid transparent;
}

.link-item:hover {
    color: #11b780;
    text-decoration: none;
    background-color: rgba(17, 183, 128, 0.05);
    border-color: rgba(17, 183, 128, 0.1);
    transform: translateX(5px);
}

.link-item i {
    width: 20px;
    text-align: center;
    color: #11b780;
}

/* Footer */
.footer {
    text-align: center;
}

.copyright {
    color: #888;
    font-size: 0.85rem;
    margin-top: 2rem;
}

/* Responsive Styles */
@media (max-width: 767.98px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
        font-size: 13px;
        width: 100%;
    }
    
    .container-fluid {
        overflow-x: hidden;
        width: 100%;
    }
    
    .row {
        margin: 0;
        width: 100%;
    }
    
    .left-panel {
        min-height: 50vh;
        padding: 2rem 1.5rem;
        align-items: flex-start;
        width: 100%;
    }
    
    .content-wrapper {
        max-width: 100%;
        padding: 0;
        width: 100%;
    }
    
    .brand-name {
        font-size: 2.2rem;
    }
    
    .brand-name i {
        font-size: 2rem;
    }
    
    .system-name {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 1.6rem;
    }
    
    .description {
        font-size: 0.95rem;
    }
    
    .stat-box {
        padding: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .right-panel {
        padding: 1.5rem;
        min-height: 50vh;
        width: 100%;
        overflow-x: hidden;
    }
    
    .login-form-container {
        max-width: 100%;
        padding: 0;
        width: 100%;
    }
    
    .login-card {
        padding: 2rem;
        border-radius: 12px;
    }
    
    .login-title {
        font-size: 1.4rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .content-wrapper {
        padding: 3rem 2rem;
    }
    
    .brand-name {
        font-size: 2.4rem;
    }
    
    .tagline {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .login-form-container {
        max-width: 420px;
    }
    
    .login-card {
        padding: 2rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
}

/* Animation for stats */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 1s ease-out;
}

/* Input placeholder styling */
.form-control::placeholder {
    color: #999;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Adjust stat boxes width */
.stats-section .col-5 {
    width: 45%;
}

/* Loading animation for button */
@keyframes loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading i {
    animation: loading 1s linear infinite;
}

/* =========================================================
   Scrollbar (mesmo padrão do projeto)
   ========================================================= */

/* Firefox (não aceita gradiente, então usamos o tom principal) */
html {
  scrollbar-width: thin;
  scrollbar-color: #11b780 #f1f1f1;
}

/* Chrome / Edge / Safari */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #11b780 0%, #3ec497 100%);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0fa372 0%, #2db386 100%);
}

/* =========================================================
   Modais de Login (Esqueci Senha / Código)
   ========================================================= */

.login-modal-content {
    border: none;
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.login-modal-header {
    background: linear-gradient(135deg, #223932 0%, #2c4a40 100%);
    color: #fff;
    border-bottom: none;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-modal-header .modal-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

.login-modal-header .modal-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.login-modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: .7;
    margin-left: auto;
}

.login-modal-header .btn-close:hover {
    opacity: 1;
}

.modal-icon-circle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: rgba(17, 183, 128, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #11b780;
}

.login-modal-body {
    padding: 1.75rem 1.75rem 0.75rem;
}

.login-modal-body .form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
}

.login-modal-body .input-group-text {
    background: #f4f8f6;
    border: 1px solid #d8e4de;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #11b780;
}

.login-modal-body .form-control {
    border: 1px solid #d8e4de;
    border-left: none;
    border-radius: 0 10px 10px 0;
    height: 46px;
    font-size: 0.95rem;
}

.login-modal-body .form-control:focus {
    box-shadow: 0 0 0 3px rgba(17, 183, 128, 0.12);
    border-color: #11b780;
}

.login-modal-body .input-group:focus-within .input-group-text {
    border-color: #11b780;
    background: rgba(17, 183, 128, 0.08);
}

.login-modal-footer {
    border-top: 1px solid #eef2f0;
    padding: 1rem 1.75rem 1.25rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn-modal-cancel {
    border-radius: 10px;
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-color: #ccc;
    color: #666;
}

.btn-modal-cancel:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #bbb;
}

.btn-modal-submit {
    border-radius: 10px !important;
    padding: 0.55rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 140px;
    height: auto;
}

/* Modal backdrop mais suave */
.modal-backdrop.show {
    opacity: 0.4;
}
