html,
body {
    height: 100%;
}

body {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
    background: linear-gradient(135deg, #1e5f8c 0%, #2980b9 100%);
}

.form-signin {
    width: 100%;
    max-width: 380px;
    padding: 30px;
    margin: auto;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.form-signin .checkbox {
    font-weight: 400;
}

.form-signin .form-control {
    position: relative;
    box-sizing: border-box;
    height: auto;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-signin .form-control:focus {
    z-index: 2;
    border-color: #2980b9;
    box-shadow: 0 0 0 0.2rem rgba(41, 128, 185, 0.25);
}

.form-signin input[type="text"] {
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
}

.form-signin input[type="password"] {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #1e5f8c 0%, #2980b9 100%);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f4d03f 0%, #f7b731 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(244, 208, 63, 0.4);
    color: #1a252f;
}

.alert {
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-signin img {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-signin h1 {
    color: #333;
    font-weight: 600;
}

.text-muted {
    color: #999 !important;
    font-size: 14px;
}

.checkbox label {
    color: #666;
    font-size: 14px;
}
