/**
 * Login Styles - InfoConsig
 * Estilos para as telas de autenticação
 * @package Auth
 * @version 1.0
 */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@200;400;600;700&display=swap');

/* Reset e Base */
.login-page {
    font-family: 'Nunito Sans', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 20px;
}

/* Container Principal */
.login-container {
    display: flex;
    max-width: 900px;
    width: 100%;
    box-shadow: 10px 10px 20px -10px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
}

/* Card Esquerdo (Info) */
.login-card-info {
    background: #FBFBFB;
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

.login-card-info .logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.login-card-info .text-conectar {
    color: #0E1726;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.login-card-info .funcionamento {
    color: #0E1726;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.login-card-info .ajuda-link {
    color: #1384AD;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.login-card-info .ajuda-link:hover {
    text-decoration: underline;
}

/* Card Direito (Formulário) */
.login-card-form {
    background: #1384AD;
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    position: relative;
}

.login-card-form .btn-voltar {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.login-card-form .btn-voltar:hover {
    opacity: 0.8;
}

.login-card-form .logo-outline {
    width: 90px;
    margin: 0 auto 20px;
    display: block;
}

.login-card-form .welcome {
    color: #FFF;
    font-size: 36px;
    font-weight: 200;
    text-align: center;
    margin-bottom: 30px;
}

.login-card-form .ola {
    color: #FFF;
    font-size: 24px;
    font-weight: 200;
}

.login-card-form .username {
    color: #FFF;
    font-size: 16px;
    font-weight: 400;
    margin-left: 10px;
}

/* Formulário */
.login-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    color: #FFF;
    font-size: 12px;
    font-weight: 400;
    display: block;
    margin-bottom: 5px;
}

.login-form .input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.login-form .form-control {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border-radius: 6px;
    border: 1px solid #E0E6ED;
    background: #FFF;
    font-size: 14px;
    font-family: 'Nunito Sans', sans-serif;
}

.login-form .form-control::placeholder {
    color: #888EA8;
    font-weight: 600;
}

.login-form .form-control:focus {
    outline: none;
    border-color: #0E1726;
    box-shadow: 0 0 0 2px rgba(19, 132, 173, 0.2);
}

.login-form .icon-container {
    position: absolute;
    right: 15px;
    color: #1384AD;
    cursor: pointer;
}

/* Botão Continuar/Entrar */
.btn-continuar {
    color: #1384AD;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    width: 200px;
    height: 38px;
    border-radius: 80px;
    background: #E0E6ED;
    border: none;
    box-shadow: 0px 10px 20px -10px #003DA4;
    cursor: pointer;
    margin: 20px auto 0;
    display: block;
    transition: all 0.3s ease;
}

.btn-continuar:hover {
    background: #d0d6dd;
    transform: translateY(-2px);
}

.btn-continuar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Link Esqueceu Senha */
.forget-link {
    color: #FFF;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    text-align: right;
    margin-top: 10px;
}

.forget-link:hover {
    text-decoration: underline;
    color: #FFF;
}

/* Footer do Card */
.login-card-form .footer {
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
}

.login-card-form .footer p {
    color: #BFC9D4;
    font-size: 10px;
    margin: 0;
}

/* Steps (CPF -> Senha) */
.login-step {
    display: none;
}

.login-step.active {
    display: block;
}

/* Carousel de slides */
.login-carousel {
    margin-top: 30px;
}

.login-carousel img {
    max-width: 100%;
    border-radius: 10px;
}

/* reCAPTCHA */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.recaptcha-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9998;
    display: none;
}

.recaptcha-overlay.active {
    display: block;
}

.recaptcha-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

    .login-card-info {
        min-height: auto;
        padding: 30px;
    }

    .login-card-info .funcionamento {
        display: none;
    }

    .login-card-form {
        min-height: 450px;
        border-radius: 0 0 20px 20px;
    }

    .login-card-info {
        border-radius: 20px 20px 0 0;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-step.active {
    animation: fadeIn 0.3s ease;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #E0E6ED;
    border-radius: 50%;
    border-top-color: #1384AD;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Máscara CPF */
.cpf-mask {
    letter-spacing: 1px;
}
