/* ========================================
   RESET E CONFIGURAÇÕES BÁSICAS
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========================================
   CONTAINER
======================================== */
.container {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    animation: fadeInUp 0.6s ease;
}

/* ========================================
   LOGO
======================================== */
.webmail-logo-img {
    width: 260px;
    filter: drop-shadow(0 4px 8px rgba(255,108,44,.25));
}

/* ========================================
   FORMULÁRIO
======================================== */
.login-form {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

/* Inputs */
.input-group {
    margin-bottom: 22px;
}

.input-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border-radius: 8px;
    border: 2px solid #e1e5e9;
    font-size: 15px;
    transition: .2s;
}

input:focus {
    border-color: #0085C8;
    box-shadow: 0 0 0 3px rgba(0,133,200,.1);
    outline: none;
}

/* ========================================
   BOTÃO LOGIN
======================================== */
.btn-primary {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    background: #0085C8;
    color: #fff;
    cursor: pointer;
    transition: .2s;
}

.btn-primary:hover {
    background: #006ba1;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ===== IMAGEM LOGIN CPANEL - FIX DEFINITIVO ===== */
.login-cpanel-img {
    display: block;
    width: 100%;
    max-width: 260px;   /* LIMITE REAL */
    height: auto;       /* impede esticar */
    margin: 30px auto 0;
    cursor: pointer;

    /* proteção contra CSS quebrado */
    box-sizing: border-box;

    /* efeito */
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-cpanel-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 108, 44, 0.3);
}

.login-cpanel-img:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 108, 44, 0.2);
}


/* ========================================
   IDIOMA
======================================== */
.language-selector-container {
    display: flex;
    gap: 10px;
    font-size: 14px;
}

select {
    padding: 8px 14px;
}

/* ========================================
   FOOTER
======================================== */
.footer-logo-img {
    width: 320px;
    opacity: .8;
}

/* ========================================
   RESPONSIVO
======================================== */
@media (max-width: 768px) {
    .login-form {
        padding: 28px 22px;
    }

    .login-cpanel-img {
        width: 180px;
    }

    .footer-logo-img {
        width: 260px;
    }
}

/* ========================================
   ANIMAÇÃO
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
