/* Fonte Itaú */
@font-face {
    font-family: 'ItauText';
    src: url('/public/assets/font/ItauText_A_Bd.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'ItauText', Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden; /* remove rolagem */
    background: #fff;
}

/* Container principal */
.container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Lado Esquerdo */
.left {
    flex: 1;
    position: relative;
    background: #f5f5f5;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* texto sempre visível */
    align-items: flex-start;
    padding: 40px;
    overflow: hidden;
}

.left img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay-text {
    position: relative;
    z-index: 1; /* fica acima da imagem */
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.4;
    max-width: 70%;
}

/* Lado Direito */
.right {
    flex: 0.5;
    min-width: 320px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: #fff;
}

.logo img {
    width: 120px;
    margin-bottom: 40px;
}

/* Caixa de Login */
.login-box {
    width: 100%;
    max-width: 350px;
}

/* Inputs */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input {
    width: 100%;
    padding: 12px 10px;
    font-size: 1rem;
    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;
    background: none;
}

.form-group label {
    position: absolute;
    left: 10px;
    top: 12px;
    font-size: 1rem;
    color: #ff6600;
    pointer-events: none;
    transition: all 0.2s ease;
}

.form-group input:focus + label,
.form-group input:valid + label {
    top: -8px;
    left: 5px;
    font-size: 0.8rem;
    color: #ff6600;
}

/* Botões */
.btn-primary {
    width: 100%;
    padding: 12px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #e65c00;
}

/* Texto de segurança */
.security {
    margin-top: 40px;
    font-size: 0.85rem;
    color: #555;
}
.security h4 {
    font-weight: bold;
    margin-bottom: 5px;
}

/* ==== RESPONSIVIDADE ==== */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: 100%;
    }

    .left {
        display: none;
    }

    .right {
        width: 100%;
        padding: 20px;
        align-items: center;
        text-align: center;
    }

    .logo img {
        width: 100px;
        margin-bottom: 30px;
    }

    .overlay-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        font-size: 0.9rem;
        padding: 10px;
    }

    .form-group input {
        font-size: 0.9rem;
    }
}
