:root {
    --cor-primaria: #00ae3a;
    --cor-primaria-hover: #09c04f;
    --cor-primaria-foco: #00ff88;
    --cor-primaria-link-hover: #02c53d;
    --cor-primaria-sombra: rgba(0, 174, 58, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Seção de Imagem - Esquerda */
.image-section {
    flex: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#imagem-logo-cliente{
    filter: drop-shadow(0 0px 1px rgba(0, 0, 0, 0.6));

}

#imagem-logo-cliente.logo-vgo-padrao-sem-fill {
    fill: none !important;
    filter: none !important;
}

.image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* Seção de Login - Direita */
.login-section {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo {
    margin-bottom: 2rem;
}

.logo img {
    width: 100%;
    height: auto;
}

.login-title {
    font-size: 1.7rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--cor-primaria-foco);
}

.password-field {
    position: relative;
}

/* Feather Icons CSS */
[data-feather] {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
    vertical-align: middle;
}

/* Melhorar o botão de toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--cor-primaria);
}

.password-toggle i {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-button {
    width: 100%;
    background: var(--cor-primaria);
    color: #ffffff;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.login-button:hover {
    background: var(--cor-primaria-hover);
    box-shadow: 0 10px 20px var(--cor-primaria-sombra, rgba(0, 174, 58, 0.35));
}

.forgot-password {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.forgot-password:hover {
    color: var(--cor-primaria-link-hover);
}

.footer-links {
    display: block;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.contact-email {
    color: #666;
    font-size: 0.8rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .image-section {
        display: none;
    }

    .login-section {
        flex: none;
        height: 100vh;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 0 1rem;
    }
}

/* Estilos para mensagens de alerta */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Estilos para botão desabilitado */
.login-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

.login-button:disabled:hover {
    background: #cccccc;
    box-shadow: none;
}

/* Estilos para campos de formulário */
.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--cor-primaria-foco);
}

/* Toast de confirmação (recuperação de senha) - mesma largura máxima da login-section (400px) */
.toast-recuperacao-senha {
    position: fixed;
    top: 1rem;
    right: 1rem;
    min-width: 280px;
    max-width: min(400px, calc(100vw - 2rem));
    width: 100%;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-left: 4px solid var(--cor-primaria, #00ae3a);
    animation: toast-entrada 0.35s ease-out;
    box-sizing: border-box;
}

.toast-recuperacao-senha__icone {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: var(--cor-primaria, #00ae3a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.toast-recuperacao-senha__conteudo {
    flex: 1;
    min-width: 0;
}

.toast-recuperacao-senha__titulo {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.toast-recuperacao-senha__mensagem {
    margin: 0;
    color: #666;
    font-size: 0.875rem;
    line-height: 1.4;
    word-wrap: break-word;
}

@keyframes toast-entrada {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .toast-recuperacao-senha {
        top: 0.75rem;
        right: 0.75rem;
        min-width: 0;
        max-width: min(400px, calc(100vw - 1.5rem));
        padding: 0.875rem 1rem;
    }

    .toast-recuperacao-senha__titulo {
        font-size: 0.9rem;
    }

    .toast-recuperacao-senha__mensagem {
        font-size: 0.8125rem;
    }
}

/* Classes utilitárias */
.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 0.5rem;
}
