body.bg-dark {
    background-image: url('../img/fundo-login.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    font-family: 'Dancing Script', cursive;
}

.login-container {
    max-width: 450px;
    width: 100%;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 30px;
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

.form-control.input-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(28, 2, 121, 0.7);
    border-radius: 8px;
    color: #0d0363;
    height: 50px;
    transition: all 0.3s ease;
}

.form-control.input-field:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(28, 2, 121, 1);
    /* Solid version of the blue on focus */
    box-shadow: 0 0 10px rgba(28, 2, 121, 0.5);
}

.form-floating>label {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: rgba(28, 2, 121, 0.7);
    /* Matching blue for labels */
    transform: translateY(-1.5rem) scale(0.85);
}

.toggle-password {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: rgba(28, 2, 121, 0.7);
    /* Matching blue for toggle */
}

.btn-login {
    background: linear-gradient(45deg, rgba(23, 3, 97, 0.973), rgba(4, 181, 216, 0.7));
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: linear-gradient(45deg, rgba(28, 2, 121, 1), rgba(0, 212, 255, 1));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(28, 2, 121, 0.4);
}

.alert {
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.9);
    color: #030463;
    border: none;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.invalid-feedback {
    color: #ff4d4d;
    font-size: 0.875rem;
}
