/* ============================================================================
 * gesteco - Estilos de Autenticação
 * ============================================================================ */

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
}

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

/* Lado Esquerdo - Formulário */
.login-left {
    width: 50%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    overflow-y: auto;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.logo-container {
    text-align: left;
    margin-bottom: 2rem;
}

.logo-image {
    max-width: 190px;
    width: 100%;
    height: auto;
    display: inline-block;
}

.auth-title {
    color: #13112F;
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

.auth-subtitle {
    color: #4f4d68;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.auth-actions-center {
    text-align: center;
}

.auth-info-card {
    text-align: center;
}

.auth-info-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 100, 149, 0.12);
    color: #016495;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.auth-info-icon.success {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.auth-info-icon.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.form-label {
    font-weight: 600;
    color: #13112F;
    margin-bottom: 0.25rem;
    font-size: 14px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #016495;
    box-shadow: 0 0 0 0.2rem rgba(1, 100, 149, 0.15);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #13112F;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #016495;
}

.password-toggle-btn:focus {
    outline: none;
    color: #016495;
}

.password-input-wrapper .form-control {
    padding-right: 3rem;
}

.btn-login,
.btn-primary {
    background: linear-gradient(135deg, #016495 0%, #014070 100%);
    border: none;
    border-radius: 8px;
    padding: 0.875rem;
    font-weight: 600;
    font-size: 16px;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.btn-login:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #014070 0%, #016495 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 100, 149, 0.3);
    color: white;
}

.divider {
    margin: 0.8rem 0;
    text-align: center;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e9ecef;
}

.divider-text {
    background: white;
    padding: 0 1rem;
    color: #13112F;
    font-size: 13px;
    font-weight: 500;
    position: relative;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #13112F;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #016495;
    border-color: #016495;
    color: white;
    transform: translateY(-2px);
}

/* Logos de Apoiadores e Parceiros - Estilo Discreto */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    max-width: 100%;
}

.partner-logo {
    height: 48px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain;
    opacity: 0.7;
    filter: grayscale(30%);
    transition: opacity 0.2s ease, filter 0.2s ease;
    display: block;
    flex-shrink: 0;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}


/* Lado Direito - Banner */
.login-right {
    width: 50%;
    background: transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.banner-overlay {
    display: none;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 500px;
    text-align: left;
}

.banner-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.banner-title .highlight {
    color: #016495;
    background: rgb(255, 255, 255);
    border-radius: 8px;
    padding: 0.2rem 0.9rem;
    display: inline-block;
    margin-top: 0.2rem;
}

.banner-text {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.95;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.banner-text::before {
    content: '▶';
    color: rgb(255, 255, 255);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Alertas */
.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: #fee;
    color: #c33;
}

.alert-success {
    background-color: #efe;
    color: #3c3;
}

.alert-info {
    background-color: #eef;
    color: #33c;
}

/* Responsivo - Mobile */
@media (max-width: 991.98px) {
    .login-right {
        display: none;
    }

    .login-left {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .login-form-wrapper {
        max-width: 100%;
    }

    .logo-image {
        max-width: 150px;
        margin-bottom: 2rem;
    }

    .banner-title {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .login-left {
        padding: 1.5rem 1rem;
    }

    .logo-container {
        margin-bottom: 1rem;
    }

    .social-icons {
        gap: 0.75rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .partner-logos {
        gap: 1rem;
    }

    .partner-logo {
        height: 42px !important;
        max-width: 110px !important;
    }
}

/* Animações suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

.banner-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Links */
a {
    color: #016495;
    text-decoration: none;
}

a:hover {
    color: #014070;
}

/* Seletor de Idiomas - Discreto */
.login-form-wrapper .language-selector-wrapper {
    margin-top: 1.5rem;
    text-align: center;
}

.login-form-wrapper .language-selector {
    position: relative;
    display: inline-block;
    width: auto;
    min-width: 100px;
}

.login-form-wrapper .language-selector select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: auto;
    min-width: 100px;
    padding: 0.5rem 1.75rem 0.5rem 2.25rem !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    background: white !important;
    color: #13112F !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-form-wrapper .language-selector select:focus {
    outline: none !important;
    border-color: #016495 !important;
    box-shadow: 0 0 0 0.15rem rgba(1, 100, 149, 0.1) !important;
}

.login-form-wrapper .language-selector select:hover {
    border-color: #016495 !important;
}

.login-form-wrapper .language-selector-icon {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    z-index: 1;
}

.login-form-wrapper .language-selector-arrow {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #7f8c8d;
    font-size: 10px;
}

.login-form-wrapper .language-selector option {
    padding: 0.5rem;
}
