/* login.css - Cores Aperfeiçoadas (Opção B - Verde Educacional) */

:root {
    /* ===== PALETA PRINCIPAL ===== */
    --primary-color: #0D6576;       /* Azul esverdeado principal */
    --secondary-color: #0A4D5B;     /* Versão mais escura */
    --accent-color: #118298;        /* Versão mais clara/brilhante */
    --light-accent: #14A3C7;        /* Destaque vibrante */

    /* ===== CORES DE SUPORTE ===== */
    --light-color: #F0F7F9;         /* Azul muito claro (fundo) */
    --dark-color: #083D48;          /* Azul muito escuro (texto) */
    --text-primary: #052D35;        /* Texto principal - alto contraste */
    --text-secondary: #2C3E50;      /* Texto secundário */

    /* ===== CORES SEMÂNTICAS ===== */
    --success-color: #27AE60;       /* Verde para sucesso */
    --warning-color: #F39C12;       /* Laranja para alertas */
    --danger-color: #E74C3C;        /* Vermelho para erros */
    --info-color: #3498DB;          /* Azul para informações */

    /* ===== EFEITOS VISUAIS ===== */
    --gradient-start: #0D6576;
    --gradient-end: #118298;
    --gradient-subtle: linear-gradient(135deg, #F0F7F9 0%, #FFFFFF 100%);
    --gradient-card: linear-gradient(135deg, #0D6576 0%, #0A4D5B 100%);

    --card-bg: rgba(255, 255, 255, 0.98);
    --shadow: 0 15px 35px rgba(13, 101, 118, 0.12);
    --shadow-hover: 0 20px 40px rgba(13, 101, 118, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 16px;
    --card-min-height: 500px;

    /* ===== CORES DE BORDA ===== */
    --border-light: #E1F0F4;
    --border-medium: #B8DDE7;
    --border-dark: #5DB4C8;
}

/* ===== RESET E ESTILOS GERAIS ===== */
* {
    box-sizing: border-box;
}


.roboto-<uniquifier> {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

.login-body {
    min-height: 90vh;
    margin: 0;
    padding: 0;
    background-color: #9fc5d5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #333;
    line-height: 1.6;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}



/* ===== IMAGEM DE FUNDO ===== */
.bg-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: blur(0);
    transition: opacity 0.5s ease;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(39, 174, 96, 0.05) 0%,
        rgba(33, 150, 83, 0.1) 100%);
    z-index: -1;
}

/* ===== CONTAINER PRINCIPAL ===== */
.login-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    position: relative;
    z-index: 1;
}

/* ===== HEADER ===== */
.login-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    padding: 20px 40px;
    border: 1px solid rgba(39, 174, 96, 0.1);
    border-left: 5px solid var(--primary-color);
}

.login-header h2 {
    color: var(--dark-color);
    font-weight: 700;
    margin: 0;
    font-size: 1.8rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.login-header .version {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(39, 174, 96, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ===== CARD DE LOGIN ===== */
.login-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh; /* Reduzido de 70vh */
    padding: 10px 0; /* Reduzido padding */
}

.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: calc(var(--border-radius) + 4px);
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 100%;
    max-width: 1000px; /* Reduzido de 1100px */
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px; /* Linha mais fina */
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.login-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.login-content {
    display: flex;
    min-height: 480px; /* Reduzido de 550px */
}

/* ===== LADO ESQUERDO ===== */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 30px; /* Reduzido padding */
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="white" opacity="0.1"/></svg>');
    background-size: cover;
}

.login-image {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 20px; /* Reduzido */
}

.login-image img {
    max-width: 220px; /* Reduzido de 280px */
    height: auto;
    /*filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));*/
    /*transition: var(--transition);*/
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
}

.login-image img:hover {
    transform: scale(1.05) rotate(2deg);
}

.login-welcome {
    color: white;
    text-align: center;
    z-index: 1;
    position: relative;
    max-width: 400px;
}

.login-welcome h3 {
    font-size: 1.6rem; /* Reduzido de 1.8rem */
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-welcome p {
    opacity: 0.9;
    font-size: 0.95rem; /* Reduzido */
    line-height: 1.5;
    margin-bottom: 15px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Reduzido */
    margin-top: 20px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.feature-item i {
    color: var(--accent-color);
    font-size: 0.9rem; /* Reduzido */
}

/* ===== LADO DIREITO - FORMULÁRIO ===== */
.login-right {
    flex: 1;
    padding: 40px 35px; /* Reduzido de 60px 50px */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title {
    text-align: center;
    margin-bottom: 35px; /* Reduzido de 50px */
}

.login-title h2 {
    color: var(--dark-color);

    font-weight: 800;
    font-size: 1.9rem; /* Reduzido de 2.2rem */
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    letter-spacing: -0.5px;
}

.login-title p {
    color: #666;
    font-size: 0.95rem; /* Reduzido */
    max-width: 350px;
    margin: 0 auto;
    line-height: 1.6;
}

.login-title .icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    width: 50px; /* Reduzido de 60px */
    height: 50px;
    font-size: 1.5rem; /* Reduzido */
    width: 50px; /* Reduzido de 60px */
    height: 50px;
    font-size: 1.5rem; /* Reduzido */
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

/* ===== FORMULÁRIO ===== */
.login-form {
    width: 100%;
}

.ui-float-label {
    position: relative !important;
    margin-bottom: 25px !important; /* Reduzido de 35px */
    display: block;
}

.ui-float-label label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
    pointer-events: none;
    color: #777;
    background: white;
    padding: 0 10px;
    font-size: 15px;
    font-weight: 500;
}

.ui-float-label input:focus + label,
.ui-float-label input.ui-state-filled + label {
    top: 0 !important;
    font-size: 13px !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    transform: translateY(-50%) scale(0.95);
}

.ui-inputfield {
    width: 100% !important;

    border: 2px solid #e8e8e8 !important;
    border-radius: 12px !important;
    padding: 15px 18px !important; /* Reduzido de 18px 20px */
    font-size: 15px !important;
    transition: var(--transition) !important;
    background: white !important;
    box-sizing: border-box !important;
    color: #333 !important;
    font-weight: 500 !important;
}

.ui-inputfield:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.15) !important;
    transform: translateY(-2px);
}

.ui-password {
    width: 100% !important;
}

.ui-password input {
    width: 100% !important;
}

/* ===== BOTÃO DE LOGIN ===== */
.login-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: var(--transition) !important;
    width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3) !important;
    position: relative;
    overflow: hidden;
    padding: 16px 28px !important; /* Reduzido */
    font-size: 1rem !important;
    margin-top: 5px !important;
}

.login-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.login-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 25px rgba(39, 174, 96, 0.4) !important;
}

.login-btn:hover::after {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0) !important;
}

.login-btn i {
    font-size: 1.2rem;
}

/* ===== LINKS ADICIONAIS ===== */
.login-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(39, 174, 96, 0.08);
}

.forgot-password:hover {
    color: var(--secondary-color);
    background: rgba(39, 174, 96, 0.15);
    transform: translateY(-2px);
}

.login-info {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.login-info i {
    color: var(--primary-color);
}

/* ===== FOOTER ===== */
.login-footer {
    margin-top: 20px;
    text-align: center;
    color: var(--dark-color);
    font-size: 0.9rem;
    padding: 20px;
    width: 100%;
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

.login-footer span {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .login-card-wrapper {
        min-height: auto;
        padding: 5px 0;
    }
    .login-content {
        flex-direction: column;
        min-height: auto;
    }

    .login-left {
        padding: 30px 25px;
        min-height: 280px; /* Reduzido de 350px */
    }

    .login-right {
        padding: 35px 30px;
    }

    .login-card {
        max-width: 600px;
    }

    .login-image img {
        max-width: 180px; /* Reduzido */
    }

    .login-title h2 {
        font-size: 1.9rem;
    }
}

@media (max-width: 576px) {
    .login-card-wrapper {
        min-height: auto;
    }
    .login-container {
        padding: 15px;
    }

    .login-header {
        padding: 15px 20px;
        margin-bottom: 30px;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .login-left {
        padding: 25px 20px;
        min-height: 220px;
    }

    .login-right {
        padding: 30px 25px;
    }

    .login-title h2 {
        font-size: 1.7rem;
        flex-direction: column;
        gap: 10px;
    }

    .login-title .icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .ui-inputfield {
        padding: 16px 18px !important;
    }

    .login-btn {
        padding: 16px 28px !important;
        font-size: 1rem !important;
    }

    .login-image img {
        max-width: 140px; /* Reduzido */
    }
    .login-title h2 {
        font-size: 1.5rem; /* Reduzido */
    }

    .ui-inputfield {
        padding: 14px 16px !important;
    }

}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.login-card {
    animation: fadeInUp 0.8s ease-out;
}

.login-image img {
    animation: float 6s ease-in-out infinite;
}

/* ===== ESTILOS PARA COMPONENTES PRIMEFACES ===== */
.ui-growl {
    top: 30px !important;
    right: 30px !important;
}

.ui-growl-item-container {
    box-shadow: var(--shadow) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* ===== PERSONALIZAÇÃO DE ÍCONES ===== */
.bi-person-fill-lock {
    color: var(--primary-color);
}

.pi-sign-in {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== ESTADO DE CARREGAMENTO ===== */
.loading .login-btn {
    position: relative;
    color: transparent !important;
}

.loading .login-btn::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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