@charset "UTF-8";
/* Reset e variáveis de cores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores baseadas em RGB(19, 85, 45) */
    --primary-color: rgb(50, 150, 100);
    --primary-light: rgb(80, 180, 130);
    --primary-lighter: rgb(120, 210, 160);
    --primary-lightest: rgb(180, 230, 200);
    --dark-green: rgb(19, 85, 45);
    --medium-green: rgb(30, 120, 70);
    --dark-green-darker: rgb(15, 65, 35);
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --error-color: #e74c3c;
    --shadow: rgba(19, 85, 45, 0.1);
}

html {
    font-size: 16px;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--primary-lightest) 0%, var(--primary-lighter) 50%, var(--white) 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.login-container {
    width: 100%;
    max-width: 100vw;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2vw, 20px);
    box-sizing: border-box;
    min-height: 100vh;
}

/* Conteúdo principal */
.login-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: min(1200px, 95vw);
    width: 100%;
    background: var(--white);
    border-radius: clamp(16px, 2vw, 24px);
    box-shadow: 0 20px 60px var(--shadow);
    overflow: hidden;
    position: relative;
    z-index: 1;
    min-height: clamp(400px, 60vh, 550px);
    box-sizing: border-box;
}

/* Seção esquerda */
.left-section {
    background: linear-gradient(180deg, var(--primary-lighter) 0%, var(--primary-light) 30%, var(--primary-color) 60%, var(--medium-green) 85%, var(--dark-green) 100%);
    padding: clamp(25px, 3.5vw, 40px) clamp(25px, 3.5vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.1);
}

.left-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.logo-section {
    position: relative;
    z-index: 2;
    text-align: left;
    margin-bottom: clamp(25px, 3.5vw, 40px);
    animation: fadeInUp 0.8s ease-out;
}

.welcome-text {
    font-size: clamp(14px, 1.5vw, 18px);
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.system-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.features-list {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    list-style: none;
    padding: 0;
    margin: 0;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 20px);
    margin-bottom: clamp(18px, 2.5vw, 28px);
    color: var(--white);
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 500;
    padding: clamp(8px, 1vw, 12px) clamp(12px, 1.5vw, 18px);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: default;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.check-icon {
    width: 26px;
    height: 26px;
    color: #ffffff;
    flex-shrink: 0;
    stroke-width: 3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.feature-item:hover .check-icon {
    transform: scale(1.15) rotate(5deg);
}

/* Seção direita */
.right-section {
    padding: clamp(25px, 3.5vw, 40px) clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(180deg, #E5F8F3 0%, rgba(255, 255, 255, 0.8) 100%);
    position: relative;
    box-sizing: border-box;
}

.right-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, rgba(50, 150, 100, 0.2) 100%);
    filter: blur(20px);
    z-index: 0;
}

.logo-placeholder {
    position: relative;
    z-index: 1;
    margin-bottom: clamp(15px, 2vw, 25px);
    margin-top: clamp(-10px, -1vw, -5px);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: clamp(150px, 15vw, 200px);
    height: clamp(112px, 11vw, 150px);
    object-fit: contain;
}

.login-form-container {
    width: 100%;
    max-width: min(400px, 90vw);
    position: relative;
    z-index: 1;
    background: transparent;
    padding: clamp(20px, 4vw, 40px);
    border-radius: clamp(12px, 1.5vw, 16px);
    box-shadow: none;
    box-sizing: border-box;
    margin-top: 0;
}

.form-header {
    margin-bottom: clamp(20px, 2.5vw, 28px);
    text-align: left;
}

.form-header h2 {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* Formulário */
.login-form {
    width: 100%;
}

.input-group {
    margin-bottom: clamp(18px, 2vw, 22px);
}

.input-group label {
    display: block;
    font-size: clamp(15px, 1.5vw, 17px);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--text-light);
    z-index: 1;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: clamp(16px, 2vw, 18px) clamp(18px, 2.2vw, 20px);
    font-size: clamp(16px, 1.6vw, 18px);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: #f9fafb;
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(50, 150, 100, 0.1);
    transform: translateY(-1px);
}

.input-wrapper input::placeholder {
    color: #9ca3af;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    z-index: 1;
}

.toggle-password:hover {
    background: rgba(50, 150, 100, 0.1);
    color: var(--primary-color);
}

/* Container do olho */
.eye-container {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Olho aberto */
.eye-open {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.eye-open svg {
    width: 100%;
    height: 100%;
    color: #6b7280;
    transition: color 0.3s ease;
}

/* Olho fechado */
.eye-closed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.eye-closed svg {
    width: 100%;
    height: 100%;
    color: #6b7280;
    transition: color 0.3s ease;
}

.toggle-password:hover .eye-open svg,
.toggle-password:hover .eye-closed svg {
    color: var(--primary-color);
}

/* Estado: Senha visível */
.eye-container.visible .eye-open {
    opacity: 1;
    transform: scale(1);
}

.eye-container.visible .eye-closed {
    opacity: 0;
    transform: scale(0.8);
}

.form-options {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-dark);
    user-select: none;
    position: relative;
    font-size: clamp(15px, 1.5vw, 17px);
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: var(--medium-green);
    text-decoration: underline;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg) scale(0);
    transition: transform 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked~.checkmark {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--medium-green) 100%);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked~.checkmark::after {
    transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

.forgot-password-container {
    margin-top: 8px;
    text-align: center;
    font-size: clamp(15px, 1.5vw, 17px);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--medium-green) 100%);
    transition: width 0.3s ease;
}

.forgot-password:hover {
    color: var(--medium-green);
}

.forgot-password:hover::after {
    width: 100%;
}

.login-button {
    width: 100%;
    padding: clamp(18px, 2vw, 20px);
    font-size: clamp(17px, 1.7vw, 19px);
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--medium-green) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(19, 85, 45, 0.4);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 85, 45, 0.5);
}

.login-button:active {
    transform: translateY(0);
}

.login-button span {
    position: relative;
    z-index: 1;
}

.login-button.loading {
    pointer-events: none;
}

.login-button.loading span {
    opacity: 0;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    z-index: 1;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.button-icon {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

.form-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: var(--medium-blue);
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 968px) {
    .login-content {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .left-section {
        display: none;
    }

    .right-section {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }

    .right-section {
        padding: 30px 20px;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .system-title {
        font-size: 28px;
    }
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-container {
    animation: fadeInUp 0.6s ease-out;
}

.input-group {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.input-group:nth-child(1) {
    animation-delay: 0.1s;
}

.input-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-options {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.login-button {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.login-footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    z-index: 2;
}

/* ==================== MODAL DE RECUPERAÇÃO DE SENHA (PADRÃO DO SISTEMA) ==================== */
.login-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Fundo Branco, cantos levemente arredondados */
.login-modal-content {
    background: #ffffff; 
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px);
    transition: all 0.2s ease;
    overflow: hidden;
    font-family: inherit;
}

.login-modal-overlay.active .login-modal-content {
    transform: translateY(0);
}

.login-modal-header {
    background: #ffffff;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
}

.login-modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

/* Botão de Fechar Vermelho Arredondado do Briefing */
.login-modal-close-btn {
    background: rgb(244, 169, 169);
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 6px;
}

.login-modal-close-btn:hover {
    background: rgb(220, 140, 140);
}

.login-modal-body {
    padding: 24px;
    background: #ffffff; 
}

.login-modal-instruction {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Campos do Modal Padrão */
.login-modal-field {
    margin-bottom: 24px;
}

.login-modal-field label {
    display: block;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-modal-field input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.login-modal-field input:focus {
    border-color: #9ca3af;
}

/* Ações (Botões Lado a Lado) */
.login-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.btn-cancel {
    background: rgb(229, 231, 235);
    color: #1f2937;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel:hover {
    background: rgb(209, 213, 219);
}

.btn-confirm {
    background: rgb(107, 133, 169);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-confirm:hover {
    background: rgb(87, 113, 149);
}

.btn-confirm:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Campos inválidos (Validação Unificada do app.css replicada) */
.is-invalid {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1) !important;
    background-color: #fff8f8 !important;
}

.is-invalid:focus {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.2) !important;
}