/* filename: static/css/login.css */

/* ---------- RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------- FUNDO ---------- */
html,
body {
    height: 100vh;
    font-family: 'Segoe UI', sans-serif;
    background: url('/static/img/bg_login.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ---------- CONTAINER ---------- */
main,
body>.nicegui-content {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

body>.nicegui-content>div[style*="max-width"] {
    max-width: none !important;
    width: auto !important;
}

.login-container {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    padding: 36px 24px;
    box-shadow: 0 12px 36px var(--shadow_medium);
    text-align: center;
    max-width: 350px;
    width: 100%;
}

/* ---------- LOGO ---------- */
.login-logo {
    max-width: 200px;
    margin-bottom: 24px;
}

/* ---------- INPUTS ---------- */
.login-input {
    width: 100%;
    margin-bottom: 20px;
    height: 52px;
    border-radius: 30px;
    border: 1px solid var(--divider);
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 20px;
    box-shadow: 0 2px 8px var(--shadow_light);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    font-size: 16px;
    padding-left: 25px;
}

/* Remove bordas internas padrão do Quasar */
.q-field__control:before,
.q-field__control:after {
    display: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Efeito de foco */
.login-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary_focus);
}

/* Placeholder */
.login-input::placeholder {
    color: var(--placeholder_gray);
    font-style: italic;
}

/* Ajusta o alinhamento vertical do conteúdo interno (campo + label) */
.login-input .q-field__control {
    min-height: 52px;
    display: flex;
    align-items: center;
}

/* Sobe o label para centralizar visualmente dentro do campo */
.login-input .q-field__label {
    top: 8px;
}

/* ---------- BOTÃO ---------- */
.q-btn.login-button {
    background: var(--primary) !important;
    color: white !important;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 32px;
    padding: 16px 0;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--shadow_medium);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.q-btn.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow_medium);
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 600px) {
    .login-container {
        width: 90%;
        padding: 30px 20px;
    }
}

@media (max-height: 550px) {
    .login-container {
        transform: scale(0.9);
    }
}