@charset "ISO-8859-1";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 600px;
}

/* Lado Esquerdo - Formulário */
.login-box {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    /* Importante para responsividade */
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-img {
    max-width: 320px;
    height: auto;
    border-radius: 10px;
}

.login-box h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
}

form {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5ee;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #f8f9fa;
}

input:focus {
    outline: none;
    border-color: #4a6cf7;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 18px;
}

button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4a6cf7, #6a11cb);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.4);
}

.image-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d53e36 0%, #1c7980 100%);
    padding: 30px;
}

.image-box img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        max-width: 450px;
        min-height: auto;
    }

    .login-box {
        padding: 30px 25px;
        order: 2;
    }

    .image-box {
        order: 1;
        padding: 25px;
        border-radius: 0 0 20px 20px;
    }

    .image-box img {
        max-height: 200px;
        width: auto;
    }

    .logo-img {
        max-width: 140px;
    }

    .login-box h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    input,
    button {
        padding: 14px 14px 14px 45px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .container {
        border-radius: 15px;
    }

    .login-box {
        padding: 25px 20px;
    }

    .image-box {
        padding: 20px;
    }

    .image-box img {
        max-height: 150px;
    }

    .logo-img {
        max-width: 120px;
    }

    .login-box h2 {
        font-size: 1.3rem;
    }

    input,
    button {
        padding: 12px 12px 12px 40px;
        font-size: 14px;
    }

    .input-icon {
        font-size: 16px;
        left: 12px;
    }
}

/* Estados extras para melhor UX */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    width: auto;
    padding: 0;
    font-size: 18px;
}

.password-toggle:hover {
    color: #4a6cf7;
    transform: translateY(-50%) scale(1.1);
    box-shadow: none;
}

/* Estilos para o autocomplete */
.suggestions-container {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
    display: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    top: 100%;
    left: 0;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    font-size: 14px;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item strong {
    color: #333;
    display: block;
    margin-bottom: 2px;
}

.suggestion-item small {
    color: #666;
    font-size: 12px;
}

/* Ajuste para o input-group com autocomplete */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

/* Estilo para campo readonly */
input[readonly] {
    background-color: #f8f9fa !important;
    color: #666;
    cursor: not-allowed;
}

.app-footer {

    text-align: center;
    margin-top: 30px;

    font-size: .90rem;
    padding: .6rem 1.5rem;
    border-top: 1px solid #dbe3ea;
    background: white;
}