body {
    padding-top: 56px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.login-container {
    max-width: 500px;
    width: 100%;
    margin: auto;
    padding: 1rem;
}

.login-form {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem !important;
    color: #2c3e50;
    font-weight: 600;
}

.form-group-custom {
    margin-bottom: 1.2rem;
}

.form-label-custom {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
}

.form-control-custom {
    font-size: 0.95rem;
    padding: 0.6rem 0.75rem;
    border-radius: 4px;
    border: 1px solid #ced4da;
    height: auto;
}

.btn-custom {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    background-color: #28a745;
    border-color: #28a745;
    width: 100%;
    margin-top: 0.5rem;
}

.btn-custom:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.form-footer {
    font-size: 0.95rem;
    margin-top: 1.5rem;
    text-align: center;
    color: #6c757d;
}

.form-footer a {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.navbar {
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem !important;
}

.nav-link:hover {
    color: white !important;
}

.hover-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover .hover-underline {
    width: 70%;
}

.alert-custom {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .login-container {
        max-width: 100%;
        padding: 0.5rem;
    }
    
    .login-form {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.3rem;
        margin-bottom: 1.2rem !important;
    }
}
