/* Reset básico */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

/* Corpo principal da página de login */
.login-body {
    background-color: #2c2c2c;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Container central do login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
}

/* Formulário de login */
.login-form {
    background-color: #3c3c3c;
    border-radius: 15px;
    padding: 26px 30px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-out;
}

/* Inputs */
.login-input {
    padding-left: 40px;
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 20px;
    background-color: #4c4c4c;
    color: #f0f0f0;
    border: 1px solid #4c4c4c;
    border-radius: 5px;
    height: 45px;
    transition: all 0.3s ease;
}

.login-input:focus {
    border-color: #909090;
    box-shadow: 0 0 0 0.2rem rgba(144, 144, 144, 0.25);
    outline: none;
}

/* Ícones nos inputs */
.username-icon {
    background-image: url('https://cdn.builder.io/api/v1/image/assets/TEMP/46438b2e5f021f58b8fbd14fd622ccd2faa8f4d5dd8eda181379e2b8ffcc9ac4?placeholderIfAbsent=true&apiKey=b753576a4d5c4a8c8c619c55dcd0d7c3');
}

.password-icon {
    background-image: url('https://cdn.builder.io/api/v1/image/assets/TEMP/a78337baff2dfe4948e08ea771547a2203386e6bff3f3d2d9c7c30dbc52e8ce9?placeholderIfAbsent=true&apiKey=b753576a4d5c4a8c8c619c55dcd0d7c3');
}

/* Botão de login */
.login-button {
    background: linear-gradient(135deg, #606060 0%, #808080 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    font-weight: 600;
    padding: 13px 36px;
    margin-top: 42px;
    border-radius: 5px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.login-button:hover {
    background: linear-gradient(135deg, #707070 0%, #909090 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

/* Linha divisória */
.line {
    width: 100%;
    border: none;
    border-top: 2px solid #606060;
    margin: 0;
}

/* Texto de apoio */
.support-text {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* Animação de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Campo de senha com botão "mostrar" */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #909090;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.password-container:has(.login-input:not(:placeholder-shown)) .toggle-password {
    opacity: 1;
    pointer-events: auto;
}

/* Mensagens de erro */
.error-message {
    color: #a0a0a0;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
    display: none;
}

/* Remove o outline padrão do Dash */
input.dash-input:invalid {
    outline: none;
    border-color: transparent;
}

/* Responsividade */
@media (max-width: 768px) {
    .login-form {
        max-width: 90%;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .login-form {
        max-width: 100%;
        padding: 20px 15px;
    }
}

.container-query-demo-root {
  min-width: 500px;
  max-width: 100%;
  min-height: 120px;
  container-type: inline-size;
  overflow: auto;
  resize: horizontal;
  border: solid;
  border-color: transparent;
}


/* Adicionar ao seu arquivo de estilos */
.navbar-glass {
    background-color: rgba(44, 62, 80, 0.95) !important;
    backdrop-filter: blur(8px);
}

.navbar-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.theme-toggle:hover {
    opacity: 0.8;
    transform: rotate(20deg);
}

#navbar-home-link:hover {
    filter: brightness(1.2);
}
