* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.7), rgba(0, 86, 179, 0.8)), 
                url('/images/background.png') no-repeat center center fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-wrapper {
    width: 100%;
    max-width: 650px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 50px 45px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.qrb-logo {
    background: #007bff;
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 18px;
    min-width: 50px;
    text-align: center;
}

.fpt-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fpt-education {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    font-size: 14px;
    font-weight: 600;
}

.fpt-university {
    color: #ff6b35;
    font-size: 16px;
    font-weight: bold;
    margin-top: 2px;
}

.system-title {
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

.login-title {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0 10px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    position: relative;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-control::placeholder {
    color: #adb5bd;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 18px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
}

.checkbox-group label {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
}

.forgot-password {
    text-align: right;
    margin-bottom: 25px;
}

.forgot-password a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #004085);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background-color: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.login-footer p {
    margin: 5px 0;
    color: #6c757d;
    font-size: 13px;
}

.login-footer strong {
    color: #333;
    background-color: #f8f9fa;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.made-by {
    text-align: center;
    margin-top: 20px;
    color: #adb5bd;
    font-size: 12px;
}

/* Icons */
.icon-email::before {
    content: "📧";
    margin-right: 10px;
}

.icon-lock::before {
    content: "🔒";
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 600px) {
    .login-wrapper {
        padding: 15px;
        max-width: 95%;
    }
    
    .login-container {
        padding: 35px 30px;
    }
    
    .login-title {
        font-size: 20px;
    }

    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 10px;
    }
    
    .login-container {
        padding: 30px 25px;
    }
}
