/**
 * RH - Intranet
 * Layout do login: esquerda (gradiente + particles + logo RH) | direita (Defensoria + form + Central de Serviços)
 * Tamanhos de fonte aumentados para melhor legibilidade.
 */

 body {
    background-color: #f9fafb;
    font-size: 17px;
}

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

/* Lado esquerdo - Imagem + texto */
.description-side {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: white;
    width: 50%;
    background: linear-gradient(135deg, #001325 0%, #003140 50%, #00523b 100%);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    position: relative;
    overflow: hidden;
}

/* Camada da imagem de fundo */
.description-image-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 0;
    overflow: hidden;
}

.description-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    display: block;
}

.description-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 19, 37, 0.75) 0%, rgba(0, 49, 64, 0.7) 50%, rgba(0, 82, 59, 0.75) 100%); 
    z-index: 1;
}

/* Conteúdo de texto sobre a imagem */
.description-content-2 {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.text-content {
    text-align: center;
    max-width: 480px;
    padding: 2rem 2.5rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.text-content-title {
    margin: 0 0 0.5rem;
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.text-content-subtitle {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0.95;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.logo-rh {
    height: 150px;
    width: 150px;
    object-fit: contain;
}

.description-side .footer {
    position: relative;
    z-index: 2;
    font-size: 1rem;
    opacity: 0.92;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Lado direito - Login */
.login-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    width: 50%;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-logo img {
    height: 200px;
    max-height: 200px;
    width: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.logo-defensoria-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    background: #2A613F;
    color: #D4AF37;
    border-radius: 50%;
    font-size: 2.5rem;
}

/* Formulário */
.login-box-body {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.login-box-body .form-group {
    position: relative;
    margin-bottom: 20px;
}

.login-box-body .form-control {
    height: 48px;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 0 42px !important;
}

.login-box-body .form-control:focus {
    border-color: #00B96D !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 185, 109, 0.25) !important;
    outline: 0 !important;
}

.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
}

.login-box-body .btn-primary {
    background-color: #00B96D !important;
    border: none !important;
    height: 48px;
    border-radius: 8px !important;
    font-weight: 600;
    width: 100%;
    margin-bottom: 15px;
    transition: all 0.3s ease;

}

.login-box-body .btn-primary:hover {
    background-color: #009d5c !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 185, 109, 0.3);
}

.login-box-body .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 185, 109, 0.3);
}

.gerar-senha {
    color: #00B96D;
    text-align: right;
    display: block;
    margin-bottom: 20px;
    font-size: 1.825rem;
    text-decoration: none;
}

.gerar-senha:hover {
    color: #009d5c;
    text-decoration: underline;
}

/* Central de Atendimento */
.central-atendimento {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.central-atendimento .icon-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.central-atendimento .icon-wrapper i {
    color: #00B96D;
    font-size: 1.5rem;
    margin-right: 10px;
}

.central-atendimento .icon-wrapper p {
    margin: 0;
    font-weight: 600;
    color: #212529;
    font-size: 2.125rem;
}

.central-atendimento .contact-info {
    margin: 0;
}

.central-atendimento .contact-info p {
    margin: 0;
}

.central-atendimento .contact-info a {
    color: #00B96D;
    font-weight: 600;
    text-decoration: none;
}

.central-atendimento .contact-info a:hover {
    text-decoration: underline;
    color: #009d5c;
}

/* Callout erro */
.login-box-body .callout-danger {
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 2.0625rem;
}

.login-box-body .callout-danger p {
    margin: 0;
    font-size: 1.4625rem;
}

/* Particles.js */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Responsivo */
@media (max-width: 890px) {
    .main-container {
        flex-direction: column;
    }
    .description-side {
        display: none;
    }
    .login-side {
        width: 100%;
        clip-path: none;
        padding: 20px;
        min-height: 100vh;
    }
    .login-box {
        width: 100%;
        max-width: 400px;
    }
    .login-logo img {
        height: 160px;
        max-height: 160px;
    }
}

@media (max-width: 480px) {
    .login-side {
        padding: 15px;
    }
    .login-box-body {
        padding: 20px;
    }
    .text-content {
        padding: 1.5rem 1.25rem;
    }
    .text-content-title {
        font-size: 2.5rem;
    }
    .text-content-subtitle {
        font-size: 1.15rem;
    }
    .logo-rh {
        height: 120px;
        width: 120px;
    }
}
