
:root {

    --primary-color: #457507; /*#198754*/
    --primary-dark: #146c43;
    --primary-light: #d1e7dd;
    --accent-color: #20c997;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --danger-color: #dc3545;
}

body {
    font-family: 'Poppins', sans-serif;
    background: url('../img/system_logo/6925.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(4px);
    transform: scale(1.1); 
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 15px;
}

.login-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 2.5rem 2rem;
    text-align: center;
    color: white;
}

.login-header h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-body {
    padding: 2rem;
}

.login-body .form-floating label {
    font-weight: 500;
    color: #6c757d;
}

.input-group-text {
    background-color: var(--light-color);
    border-right: none;
}

.form-control {
    border-left: none;
    height: 58px;
    font-size: 1.1rem;
}

.form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.password-toggle {
    cursor: pointer;
    color: #6c757d;
}

.btn-login {
    height: 58px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(25, 135, 84, 0.2);
}

.invalid-feedback {
    font-size: 0.85rem;
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.login-footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: #6c757d;
    font-size: 0.9rem;
}

.role-select {
    height: 58px;
    font-size: 1.1rem;
    border-left: none;
}

.alert-error {
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: var(--danger-color);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.alert-error i {
    margin-right: 10px;
    font-size: 1.2rem;
}


.forgot-link {
text-decoration: none;
font-weight: 500;
transition: color 0.3s ease;
}



.forgot-link:hover {
color: #0a58ca; 
text-decoration: underline;
}
