/**
 * Estilos Customizados para Login Locaweb
 * CSS reescrito, corrigido e otimizado
 */

/* Fonte */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

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

/* Evita corte lateral em iPhones */
html,
body {
    overflow-x: hidden;
}

/* Body */
body {
    font-family: "Poppins", Arial, sans-serif;
    background-color: #253646;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Logo */
.logo {
    margin-bottom: 15px;
    padding: 15px;
}

.logo img {
    width: 160px;
    height: auto;
}

/* Card Principal */
.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0px 16px 48px rgba(0, 0, 0, 0.25);
    display: flex;
    max-width: 700px;
    width: 100%;
    overflow: hidden;
}

/* Formulário */
.login-form {
    padding: 20px;
    flex: 1;
}

.form-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

/* Inputs */
.input-group {
    margin-bottom: 12px;
}

.input-field {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    font-size: 14px;
    color: #333;
    min-height: 48px;
    padding: 12px 0;
    transition: border-color 0.25s ease;
}

.input-field:focus {
    border-bottom-color: #EB2850;
}

.input-field::placeholder {
    color: #777;
}

/* Senha */
.password-wrapper {
    position: relative;
}

.show-password {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #337ab7;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

/* Botão */
.login-btn {
    width: 100%;
    height: 40px;
    background: #DC0038;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    text-transform: uppercase;
}

.login-btn:hover {
    background: #b8002a;
}

/* Painel lateral */
.info-panel {
    background: #182430;
    padding: 20px;
    flex: 1;
    color: white;
}

.info-title {
    color: #ff0000;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-subtitle {
    font-weight: 600;
    margin-bottom: 12px;
}

.info-text {
    font-size: 13px;
    line-height: 1.4;
}

.info-link {
    color: white;
    text-decoration: underline;
}

/* Footer geral */
.footer {
    margin-top: 80px;
    max-width: 900px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    color: white;
}

.footer-column:not(:first-child) {
    border-left: 3px solid rgba(33, 157, 183, 0.5);
    padding-left: 20px;
}

.footer-column h3 {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-column p {
    font-size: 12px;
    line-height: 1.3;
}

.footer-column .footer-link {
    color: #337ab7;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.2s ease;
}

.footer-link:hover {
    text-decoration: underline;
    color: #286090;
}

/* ==========================
   RESPONSIVIDADE
   ========================== */

@media (max-width: 768px) {

    body {
        padding: 10px;
    }

    .login-card {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        padding: 0 !important;
        gap: 20px;
        margin: 10px 0;
    }

    /* Painel lateral em cima */
    .info-panel {
        order: -1 !important;
    }

    .login-form,
    .info-panel {
        padding: 16px;
        width: 100%;
        max-width: 100%;
    }

    .input-field,
    .password-wrapper,
    .login-btn {
        width: 100%;
    }

    .footer {
        grid-template-columns: 1fr;
        margin-top: 40px;
        max-width: 100%;
    }

    .footer-column:not(:first-child) {
        border-left: none;
        border-top: 3px solid rgba(33, 157, 183, 0.5);
        padding-left: 0;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {

    .login-card {
        border-radius: 0;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .form-title {
        font-size: 16px;
    }

    .input-field {
        font-size: 16px;
        /* evita zoom no iOS */
    }
}

/* Validação */
.input-field.error {
    border-bottom-color: #DC0038;
}

.input-field.success {
    border-bottom-color: #5FB660;
}