body {
    height: 100vh;
    display: flex;
    align-items: center;
    background: #003DA5;
    overflow: hidden;
}

.form-signin {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    margin: auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease-in-out;
}

.form-signin:hover {
    transform: translateY(-5px);
}

.form-signin h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
}

.form-floating {
    margin-bottom: 0;
}

.form-floating > label {
    display: none;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e3e3e3;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #8e44ad;
    box-shadow: 0 0 10px rgba(142, 68, 173, 0.2);
}

.btn-primary {
    background: linear-gradient(to right, #003DA5, #0357e9);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.input-container {
    position: relative;
    margin-bottom: 20px;
}

.input-container input {
    padding-left: 45px !important;
    height: 50px;
    background-color: #f8f9fa;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
}

.messages {
    margin-bottom: 20px;
}

.alert {
    border-radius: 10px;
    animation: slideIn 0.5s ease-out;
}

.logo-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
